Development Team/Datastore Rewrite: Difference between revisions

Tomeu (talk | contribs)
Tomeu (talk | contribs)
Line 57: Line 57:
             data
             data
             metadata
             metadata
                  uid
                  checksum
                   activity_id
                   activity_id
                   mime_type
                   mime_type
Line 66: Line 68:
       2b90597c-0912-4e7f-8eeb-71a0f004490d
       2b90597c-0912-4e7f-8eeb-71a0f004490d
             data
             data
            checksum ~> checksums/464493d8d929436b6152e868867ed451
             metadata
             metadata
                  uid
                  checksum
                   activity_id
                   activity_id
                   mime_type
                   mime_type
Line 77: Line 80:
       3cdf5f0e-7595-4166-b1f9-cbedfcfe1c4a
       3cdf5f0e-7595-4166-b1f9-cbedfcfe1c4a
             data -> 2b/2b90597c-0912-4e7f-8eeb-71a0f004490d/data
             data -> 2b/2b90597c-0912-4e7f-8eeb-71a0f004490d/data
            checksum ~> checksums/464493d8d929436b6152e868867ed451
             metadata
             metadata
                  uid
                  checksum
                   activity_id
                   activity_id
                   mime_type
                   mime_type
Line 89: Line 93:
             data
             data
             metadata
             metadata
                  uid
                  checksum
                   activity_id
                   activity_id
                   mime_type
                   mime_type
Line 98: Line 104:
             data
             data
             metadata
             metadata
                  uid
                  checksum
                   activity_id
                   activity_id
                   mime_type
                   mime_type
Line 135: Line 143:


'''3c/3cdf5f0e-...-cbedfcfe1c4a/data''': hard link to the same file in the entry '''2b90597c-...-71a0f004490d'''
'''3c/3cdf5f0e-...-cbedfcfe1c4a/data''': hard link to the same file in the entry '''2b90597c-...-71a0f004490d'''
'''3c/3cdf5f0e-...-cbedfcfe1c4a/checksum ~> checksums/464493d8d929436b6152e868867ed451''': symbolic link to the file in '''checksums'''. Used to get the checksum of the entry without having to recalculate it nor read it from the metadata file


'''checksums''': directory containing a directory per each file contained in the DS, named by its md5 checksum
'''checksums''': directory containing a directory per each file contained in the DS, named by its md5 checksum