A Brief Comparison of MongoDB and CouchDB
A comparison in the form of a bullet list:
MongoDB and CouchDB both have been embraced greatly by the open source community. It is because they are designed for easy javascript query, Rest service. It means it is very easy and flexible to use in practice.
Couple of remarks:
Both fully open source?
Yes
CouchDB is using the Apache License while MongoDB is using GNU AGPLv3. These have different implications[1]
Which has better documentation?
Both have good documentation, enough to get started quickly. MongoDB seems to have more details on their documentation.
CouchDB already has two books available: CouchDB: The Definitive Guide: Time to Relax (Animal Guide) and Beginning CouchDB
(with a Kindle version
) .
MongoDB has 3 5 books in the works:
- MongoDB: The Definitive Guide
- The Definitive Guide to MongoDB: The NoSQL Database for Cloud and Desktop Computing
- MongoDB for Web Development
- MongoDB in action by Kyle Banker
- MongoDB: A Quick-Start Guide by Brendan W. McAdams
Update: I’ve updated the list of book thanks to Damien Katz and Meghan Gill comments. It’d have been easier if I’d already had them around.
Note: the above links are affiliate links. Buying one of the books will get me a penny.
Which is faster?
This article tested around 250 MB size file. It is found MongoDB is faster than CouchDB. There is also another benchmark data test. It also found MogoDB is faster than CouchDB for the heavy load of query condition. This is another article impressed by the efficiency of MongoDB.
Unfortunately most of these benchmarks are incomplete or flawed. You should read our coverage on NoSQL benchmarks to better understand how difficult is to come up with good and unflawed benchmarks.
Durability
On the MongoDB official site, there is a fair comparison of the durability. CouchDB is with crash-only design. Database can terminate at any time, MongoDB takes a different approach. Reparidatabase() operation has to be run once there is an unexpected termination.
I felt like pointing out to our comments on MongoDB durability and also different solutions for insuring disk level durability[2]
.
- Every time I’m referring to MongoDB GNU AGPLv3 usage, I think it is worth mentioning ☞ their position about this license (↩)
- As a side note, MongoDB encourages durability through replication. (↩)
via: http://newsicare.wordpress.com/2010/06/30/mongodb-vs-couchdb/