I made some tests of speed to compare MongoDB and CouchDB. Only inserts were while testing. I got MongoDB 15x faster than CouchDB. I know that it is because of sockets vs http. But, it is very interesting for me how can I optimize inserts in CouchDB?
Test platform: Windows XP SP3 32 bit.
I used last versions of MongoDB, MongoDB C# Driver and last version of installation package of CouchDB for Windows.
Thanks!
For inserting lots of data into the DB in bulk fashion, CouchDB supports bulk inserts which are described in the wiki under HTTP Bulk Document API.
Additionally, check out the
delayed_commitsconfiguration option, and thebatch=okoption described in the above link. Those options enable similar memory-caching behavior with periodic syncing against he disk.