Massive waste of space though. LMDB is also copy-on-write and crash-proof but doesn't require compaction like CouchDB does.
Read the LDAPCon 2011 paper (and slides) to see how it works and why it's better than CouchDB.
Read the LDAPCon 2011 paper (and slides) to see how it works and why it's better than CouchDB.
Sounds like a waste of space, but it solves a bunch of problems, like being crash-proof (since we never overwrite anything, it's always possible to just find the last root) and allowing reads concurrent with a write without any synchronizing necessary. Plus, it's actually optimized for SSD's due to its log-like structure!
CouchDB B-Trees : http://guide.couchdb.org/draft/btree.html Log structures in SSDs : http://lwn.net/Articles/353411/