couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Compaction" by JimLindley
Date Wed, 09 Apr 2008 17:50:32 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:
http://wiki.apache.org/couchdb/Compaction

The comment on the change is:
Clarified curl post call

------------------------------------------------------------------------------
  
  {{{
      # POST http://localhost/my_db/_compact via curl
-     curl --data '' http://localhost/my_db/_compact
+     curl -X POST http://localhost/my_db/_compact
+     #=> {"ok":true}
  }}}
  
  GET requesting your database base url ( http://localhost/my_db ) gives a hash of statuses
that look like this:
  
  {{{
+     curl http://localhost/my_db
-     {"db_name":"my_db","doc_count":0,"doc_del_count":1,"update_seq":3,"compact_running":false,"disk_size":14341}
+     #=> {"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.

Mime
View raw message