Login | Register
My pages Projects Community openCollabNet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Catacomb] external storage of document data

Bryce Harrington wrote:


For example:


[file_num] is there for documents that are aggregates of multiple files
(such as a webpage and its img's, or a PDF plus attached spreadsheet).
I thought about this a bit more and realized something...This approach generates a ton of directory inodes that are not really necessary.

Instead, I'd suggest using the minimum amount of information to uniquely identify the data in the filesystem. Currently Catacomb only has two things that uniquely identify it: the document id and the version id. So one path idea would be (simply):


The other metadata (lang, file num, base, ext) are informative and should be stored in Catacomb (only?) Is there any other reason to reflect this metadata into the filesystem?

Anyways, again I'm working on a generalized fn so you could choose whichever format you prefer.