couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "Compaction" by JimLindley
Date Wed, 09 Apr 2008 17:10:55 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by JimLindley:

The comment on the change is:
Initial go at compaction description / API call docs

- == Compaction ==
+ == Overview ==
- ... bear with me, getting together my description offline
+ Compaction rewrites the database file, removing outdated document revisions and deleted
documents. It is available in builds of CouchDB built from SVN after 2008-04-07, but not yet
in an official release.
+ Compaction is manually triggered per database. Support for queued compaction of multiple
databases is planned.
  === Example ===
+ Compaction is triggered by an HTTP post request to the _compact sub-resource of your database:
+     POST http://localhost/my_db/_compact
+ GET requesting your database base url ( http://localhost/my_db ) gives a hash of statuses
that look like this:
+     {"db_name":"my_db","doc_count":0,"doc_del_count":1,"update_seq":3,"compact_running":false,"disk_size":14341}
+ The compact_running key will be set to true during compaction.

View raw message