On 22.03.2012 16:50, Daniel Shahaf wrote: > Branko Čibej wrote on Thu, Mar 22, 2012 at 16:37:24 +0100: >> It's called SQLite. > Heh. I wondered whether I should mention that the server uses BDB to > store pristine files. (yes, the situation there is different in > several relevant ways)
To clarify: I'm /not/ advocating that we store each and every file into an SQLite BLOB. Files larger than several block sizes would be better off on disk as real files (the compressor can, e.g., buffer compressed contents up to, say, 32k, and if they become larger, spill directly into a file; otherwise, dump into a BLOB). If we don't care about shared pristine store, we don't even need a separate database, these blobs can go into wc.db (which, as Greg points out, also serves as an index). -- Brane