Triple ouch. We should really replace couchdb. :/ It might be a good idea to get in contact with Jason from Couchdb to figure out if something less devastating would be possible here.