Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The following page has been changed by JasonDavies:
http://wiki.apache.org/couchdb/History

------------------------------------------------------------------------------
  
   * We will use a separate database to store history documents.
   * The main change will be at the couch_db level in the document update 
functions, so that *any* change to a document will be recorded in the history 
database.
-  * Changes to documents will result in a new document being written to the 
history database, of the form:
+  * Changes to documents will result in a new document (with a new ID) being 
written to the history database, of the form:
  
  {{{{
    _id: <uuid>,
@@ -17, +17 @@

   * The history database is an ordinary CouchDB database that can be 
manipulated as normal e.g. views can be added to organise the history docs as 
required.
   * If people need to add meta-data to the history, e.g. "last changed by", 
"last changed date/time", then the recommended way would be to use a custom 
_update handler to add these fields to the doc being saved, and these would 
propagate to the history database.
  
+ == Use Cases ==
+ 
+  * Make it easy to "roll back" all docs to a specific point in time.  Viewing 
how a single doc looked at a certain point in time is easy, but to get all docs 
with doc.type == 'profile' at some point in time, for example, is a bit harder. 
 Suggestions welcome!
+ 

Reply via email to