...
There are two techniques (at the time of writing) that are used to manage disk the size occupied by of CouchDB databasesdatabase files, these are:
- Revision limit
- Compaction
...
By default, CouchDB stores up to 1000 document revisions.
To reduce the size of the list of old revisionsthis size, CouchDB offers a parameter _revs_limit (revisions limit) which limits the number of revisions stored in a database.
...
It may be a great idea to configure error trace databases differently. For example:
No Format |
---|
database_error_trace = [{db_fragmentation, "50%"}, {view_fragmentation, "50%"}, {from, "19:00"}, {to, "23:00"}] _default = [{db_fragmentation, "70%"}, {view_fragmentation, "60%"}, {from, "23:00"}, {to, "04:00"}] |
Also, note that compaction does not affect Changes Feed used by IBM Cloudant to sync data to the OpenSRP client. Checkout this stackoverflow answer for more information.
...