Labels

biology (1) compilation (1) couchdb (2) database (2) golang (1) google maps (1) mapnificent (1) nosql (2) optimization (1) public transit (1) python (2) randomization (1) sea snake (1) sqlite (1)
Showing posts with label optimization. Show all posts
Showing posts with label optimization. Show all posts

Saturday, March 26, 2011

Using closures to optimize speed of couchdb-python view functions

Python's standard library (and 3rd party modules) brings a lot of pluggable functionality that you can use in Couch view (map/reduce) and list/show functions.

Here, we'll using the couchdb-python library, which is, to my knowledge, the only well known couchdb library for Python that implements a view server (couchdbkit does not, which makes it fall out of consideration for the things I commonly need to do).