Posts Tagged ‘couchdb’

Walled City: Database changes

It took a couple of weeks longer than I would have liked but Walled City has a new release.

  • MySQL has been dropped and couchDB is the new database for the forum.

CouchDB and malformed URLs

CouchDB chokes on malformed URLs. This request works in Firefox but not curl or when called from a PHP script. The problem is that the space after the comma in the endkey is not properly encoded. The solution is to remove the space.

localhost:5984/db/_design/forum/_view/postsbak?startkey=["forum/test_page_1"]&endkey=["forum/test_page_1", {}]

Luckily the CouchDB team know about this (Doesn’t gracefully handle malformed URLs) and hopefully will be fixing it soon.

CouchDB on transactions

Homey don’t play that: transactions are a form of locking, and I un-friended locking years ago, for posting too many lame updates to my log files.

CouchDB Implements a Fundamental Algorithm