couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Trivial Update of "Compaction" by SebastianCohnen
Date Wed, 17 Mar 2010 16:33:59 GMT
Dear Wiki user,

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

The "Compaction" page has been changed by SebastianCohnen.
The comment on this change is: fixed indentions .


  Compaction is triggered by an HTTP post request to the _compact sub-resource of your database.
On success, HTTP status 202 is returned immediately.
-     curl -X POST http://localhost:5984/my_db/_compact
+ curl -X POST http://localhost:5984/my_db/_compact
-     #=> {"ok":true}
+ #=> {"ok":true}
  GET requesting your database base URL ( see [[HTTP_database_API#Database_Information]] )
gives a hash of statuses that look like this:
-     curl -X GET http://localhost/my_db
+ curl -X GET http://localhost/my_db
-     #=> {"db_name":"my_db", "doc_count":1, "doc_del_count":1, "update_seq":4, "purge_seq":0,
"compact_running":false, "disk_size":12377, "instance_start_time":"1267612389906234", "disk_format_version":5}
+ #=> {"db_name":"my_db", "doc_count":1, "doc_del_count":1, "update_seq":4, "purge_seq":0,
"compact_running":false, "disk_size":12377, "instance_start_time":"1267612389906234", "disk_format_version":5}
  The compact_running key will be set to true during compaction.

View raw message