couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <>
Subject Re: Why are reads from CouchDB so slow? (1.5MB/s or thereabouts)
Date Fri, 23 Mar 2012 17:09:06 GMT

On Mar 23, 2012, at 9:56 AM, Robert Newson wrote:

> One way to avoid this is to
> use one file for documents and another for attachments. If TouchDB is
> effectively doing that, then that explains how you escape the issue.

Yes — TouchDB stores every attachment as a separate file. It’s a very simple content-indexed
store, where the files are named according to their SHA-1 digests. The document metadata*
contains attachment digests. (This then requires that compaction run a mark-sweep phase where
it collects the digests of all available attachments, then deletes attachment files that don’t
appear in that list.)



View raw message