Interactive CouchDB
I’ve blogged about CouchDB before and we use it on pcapr. While I love CouchDB, it takes a a certain amount of unlearning, especially if you have years of SQL under your belt. What if you can visualize the internals of CouchDB in an interactive way?
I originally wrote this for an internal demo to get people to try out CouchDB interactively without necessarily having to install. The other reason was for me to grok the incremental reduce (a.k.a as rereduce). While the documentation has gotten a whole lot better over the last few months, nothing like an interactive way to visualize all the gory details of collation, map/reduce, etc.
Interactive CouchDB is an emulator written in 100% JavaScript with tons of jQuery thrown in. It also implements the collation schemes as well as the map/reduce algorithms. While it doesn’t demonstrate replication, conflict management and a host of other capabilities in CouchDB, it does strive to illustrate concepts like schema-less JSON documents, map/reduce and how these things fit together.
You can try out the emulator here. Let us know what you think.
Update Apr 14, 2009: We’ve moved this emulator to GitHub under Apache License and this is now maintained by Jan Lehnardt.
April 4th, 2009 at 1:20 am
Found it on the mailing-list. This is great stuff - thx for this.
April 7th, 2009 at 11:40 pm
Hey, this is neat. A nice way to wrap your head around it indeed.
April 14th, 2009 at 10:00 am
Sweet! Many thank’s for this, it helped me feel a little less stupid. :-)
April 20th, 2009 at 9:29 am
Thanks, this made me understand a little bit further what CouchDB is for:)
April 21st, 2009 at 3:34 am
[…] is also an interactive CouchDB project that “is an emulator written in 100% JavaScript with tons of jQuery thrown in. It […]
April 21st, 2009 at 11:45 am
[…] is also an interactive CouchDB project that “is an emulator written in 100% JavaScript with tons of jQuery thrown in. It […]
April 22nd, 2009 at 1:13 am
[…] is also an interactive CouchDB project that “is an emulator written in 100% JavaScript with tons of jQuery thrown in. It […]
April 24th, 2009 at 3:53 am
[…] is also an interactive CouchDB project that “is an emulator written in 100% JavaScript with tons of jQuery thrown in. It […]
May 4th, 2009 at 2:44 pm
This is a fantastic tool. It saved me countless hours when trying to implement new views.
Thanks!
May 13th, 2009 at 5:02 am
Thanks for the great post, the tool is really nice!
Rick
July 8th, 2009 at 12:13 pm
Very cool! We have been inspired by this to offer: http://couch-db-hosting.blogspot.com/
July 26th, 2009 at 3:13 am
[…] http://www.cmlenz.net/archives/2007/10/couchdb-joins (англ.) – примеры http://labs.mudynamics.com/2009/04/03/interactive-couchdb/ (англ.) – показывает, какие map/reduce к какой выборке […]
February 11th, 2010 at 8:48 am
FYI: you might want to reference your own copy of json2.js or, if you are, remove the alert that’s at the beging of the file that says “remove this alert before deployment.”
February 11th, 2010 at 8:54 am
Ah yes. Forgot that they changed this. Thanks for reminding me.
March 8th, 2010 at 5:38 pm
[…] Map/Reduce very much inspired by CouchDB. The simplest way to understand how this works is from the Interactive CouchDB tutorial that we published a while […]