couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Beam <>
Subject Revisions for Created Documents
Date Sun, 24 Jan 2010 16:23:21 GMT
Hi There,

My application is monitoring the _changes API to update its UI for updated documents. I would
also like to take actions in my app for new documents, so I wanted to get the list's opinion
on detecting created documents.

Is checking the revision string for the prefix "1-" is a reliable and robust method of recognizing
a change as a new document?  Everything in my experience points to yes, but I may be overlooking
some subtleties about how that all works.


Mike Beam

View raw message