Here is a little code snippet on how to get a list of all the Views from all the Design Documents from all the Databases in a CouchDB instance with couchdbkit. #!/usr/bin/env python from couchdbkit import * server = Server() dbs = server.all_dbs() for dbname in dbs: db = server.get_or_create_db(dbname) result = db.all_docs(startkey=’_design’, endkey=’_design0′) for [...]
The problem with getting CouchDB to install and run correctly in 64 bit mode of OSX 10.6.x is that the ICU dependency has a broken configure script that just won’t compile in 64 bit mode, even with the correct arguments passed in. The solution is to patch up the configure script and force it to [...]
I had my CouchDB development environment up and running along just fine until I tried to start adding external httpd handlers written Python. I was starting my CouchDB instance with sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist and stopping it with sudo launchctl unload -w /Library/LaunchDaemons/org.apache.couchdb.plist I would get a cryptic Erlang message with ‘OS Process timeout’. [...]
Update: this has been applied in CouchDB as of applied in r939443. Here is the bit you add to jquery.couch.js in the couchdb/www/script directory. I added it right between the query function and the view function. Here is the entire modified jquery.couch.js if you just want to download it and use it without having to [...]
In a previous post I documented my first pass at implementing ad-hoc queries in CouchDB. I have now abandoned the Reduce step of that process, it doesn’t reduce fast enough in some cases of extremely large data. And I moved all the merging of duplicate document ids to a List function, and I made it [...]
This article has been susperceded by Generic Ad Hoc Queries in CouchDB.