4 ms·
Couch now has an inbuilt compaction deamon, so you can configure it to run automatically https://github.com/apache/couchdb/blob/trunk/etc/couchdb/default.ini.t
by daleharvey 15y ago
Couch now has an inbuilt compaction deamon, so you can configure it to run automatically
https://github.com/apache/couchdb/blob/trunk/etc/couchdb/default.ini.tpl.in#L197 https://github.com/apache/couchdb/blob/trunk/etc/couchdb/def...
- dhimes 15y agoWhat I haven't tested, though, is how long compaction takes- that is, how it scales with db size and whether more frequent compaction means closer to constant scaling. Once the prototype was up I started working on other parts of the system (and the business for that matter) and only half-paid-attention to the mailing list. The mailing list for couch is quite good, btw.
- rdtsc 15y agoIt is better to do it during downtime. You can basically provide scheduling rules such as 'compact when fragmentation % > X AND time-of-day window is Y'.