Thanks Roald!

On Fri, Jun 12, 2015 at 1:43 PM, Roald de Vries <[email protected]>
wrote:

> > 2. I'm assuming that CouchDB works by keeping a log of all transactions
> > made to the database. I want to provide undo functionality to the program
> > using this log of transactions. (i.e. every undo would look at the last
> > transaction and create a transaction that's the reverse of it.) This
> means
> > I need each transaction to save the old data, and I need the possibility
> to
> > access the transaction table. Is this possible?
>
> CouchDB uses an append-only file format, and a transaction replaces the
> previous version of a doc by a new one. The ‘transaction’ is not
> reversible, but if you’re lucky, the previous version of a document is
> still recoverable. You shouldn’t rely on this for undoing changes, though,
> because e.g. compaction will remove old versions, and replication won’t
> replicate old versions.
>
> Cheers, Roald



So if I'll want undo functionality, I'll have to create my own log separate
from CouchDB's native log?

Reply via email to