by AdrianRossouw · 12y ago · 0 comments
I'm leaning heavily towards couchdb though.
http://rethinkdb.com/ http://rethinkdb.com/docs/comparison-tables/
Not saying MongoDB is bad (I've used Mongodb and like it), but much of their API-design is quirky/bad, locking is an issue and mmap feels weird too.
Also it has a very nice HTTP interface so can talk to it straight from the Web via a proxy.
And, more node.js specific (but also offline capable, and available any time):
the latter is especially useful. I'll pass it along to people for extra reference.
same with some others document json oriented database (like elastic search), but mongodb is a good compromise in many area, the query language is easy to understand and powerful, the biggest issue being the diffculty to do complex computation and aggreagation: mapreduce help, aggreagation framework helps too, but in this area SQL is generally much faster for instance.
It could have been built with CouchDB however some features such as ad-hoc querying and partial document updates make MongoDB a more compelling choice (albeit prone to some scalability issues until mongodb version 2.8 hopefully lol!).
I use elasticsearch for adhoc querying : http://daemon.co.za/2012/05/elasticsearch-5-minutes/
And couchdb does have atomic in-place updates, http://wiki.apache.org/couchdb/Document_Update_Handlers
I used the latter recently to track the last view-time on images, as well as to build a schema migration routine in like 100 lines of code.
edit fixed link