Skip to content

Category Archives: CouchDB

CouchDB related articles

Get All Views from All Databases in CouchDB

11-May-10

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 [...]

Getting CouchDB to install from source on OSX 10.6.3 Snow Leopard in 64 bit

06-May-10

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 [...]

CouchDB launchctl external httpd handlers permissions madness on OSX

30-Apr-10

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’. [...]

Adding list query support to CouchApp to jquery.couch.js and jquery.couch.app.js

25-Apr-10

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 [...]

Generic Ad Hoc Queries in CouchDB

25-Apr-10

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 [...]

WHERE clause like selects against CouchDB

18-Apr-10

This article has been susperceded by Generic Ad Hoc Queries in CouchDB.