On Wed, Jan 25, 2012 at 12:12 AM, Dave Cottlehuber <[email protected]> wrote: > On 23 January 2012 08:00, Jeroen Janssen <[email protected]> wrote: >> Hi, >> >> It seems to be ok, since I get: >>> All 2 tests passed. >> >> I also tried compaction again, but it didn't compress the 800Mb .couch >> file, so I guess something else might be needed aswell? >> >> Best regards, >> >> Jeroen > > Hi Jeroen, > > Thanks heaps, missing DLL is sorted - > https://www.dropbox.com/s/jeifcxpbtpo78ak/snapshots/20120124/SDK7.1?v=l > Either of these will work but in my testing R15B seems both faster and > more memory efficient. > > NB I am testing compaction by going from 1.1.1 -> 1.2.x here, as the > on-disk format changes > in between. I don't get compression either using your procedure above > even with a POST /_restart > in between. Hopefully Filipe can clarify what's expected here.
If the disk version of a database is already at version 6 (version 1.2) and the database doesn't have compression, compaction will not compress it. I'll correct this soon. If you grab a database file from CouchDB 1.1 (or older), it will be compressed on compaction. > > 01/23/2012 03:25 PM 246,907,000 fatty_no_snappy.couch > 01/23/2012 03:19 PM 38,830,200 fatty_snappy.couch > 01/23/2012 01:57 PM 3,104,881 sluggy_no_snappy.couch > 01/23/2012 01:58 PM 3,072,113 sluggy_snappy.couch > > - sluggy is a set of small docs, all around 4KiB size, generated via > http://json-generator.appspot.com/ > - fatty is a set of large docs, all around ~400KiB size, artificially > full of http://baconipsum.com/ > > These json blobs are in > https://www.dropbox.com/s/jeifcxpbtpo78ak/testing/ and are formatted > for _bulk_docs. I'm testing your approach using > http://friendpaste.com/6t4KwKYWKofHvVzF3kDMLQ > > A+ > Dave -- Filipe David Manana, "Reasonable men adapt themselves to the world. Unreasonable men adapt the world to themselves. That's why all progress depends on unreasonable men."
