couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson" <>
Subject Re: Rails plug-in feedback request
Date Sun, 28 Sep 2008 02:13:07 GMT
Very cool.

Everything about the architecture looks spot on. The only problem I
see is that because CouchDB requires you to have the previous _rev
around to modify or delete a document, you'll have problems with your
delete method. It needs to load the document (to get the latest rev)
before it can delete it. Your write method will also encounter
problems should a user attempt to write different values to the same
key over time. It should rescue errors on, and retry
the save after getting the CouchDB document with that id, and copying
it's rev to the new document.

Aside from that minor detail, everything looks really clean. Thanks for sharing!


On Sat, Sep 27, 2008 at 3:22 PM, John Pignata <> wrote:
> I've put together a quick plug-in to allow CouchDB to be used as a
> caching store. I have a project whereby I want to create a persistent
> file cache, and CouchDB seemed to be a good approach to try.
> If anybody has any feedback on this or has a similar need for
> something like this - it would be much appreciated. Thanks!

Chris Anderson

View raw message