enquora / tapirwiki

Automatically exported from code.google.com/p/tapirwiki
0 stars 0 forks source link

Compact destroys history #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When the wiki database is compacted all page history is lost because the 
history feature relies on the couchdb _rev functionality.

"Another option is to forgo compaction. This will work if you are on a single 
node, but as soon as you are on a cluster, only the head revs will be 
replicated, so access to all versions is not guaranteed. If you think you want 
to do it this way, you are probably better off using the attachment mode 
described above. "
From "Simple Document Versioning with CouchDB"
on how to properly implement versioning.
http://blog.couch.io/post/632718824/simple-document-versioning-with-couchdb

Original issue reported on code.google.com by tom.sa...@gmail.com on 9 Aug 2010 at 1:18

GoogleCodeExporter commented 9 years ago
Hi Tom,
Thanks very much for the tip. We are of course aware of that problem. It 
depends really how important previous versions are. The tip you gave is 
certainly worth considering for implementation, it seems like an elegant 
approach.
I will have a go at it soon.
Jeroen 

Original comment by jeroen....@gmail.com on 15 Aug 2010 at 6:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Ok good, I'll test it out once you had a chance to code a new approach. I'd be 
happy to get my hands dirty in the code, once I have some more time.

Original comment by tom.sa...@gmail.com on 16 Aug 2010 at 9:36