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 "HTTP_database_API" by SebastianCohnen
Date Wed, 03 Mar 2010 23:03:55 GMT
Dear Wiki user,

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

The "HTTP_database_API" page has been changed by SebastianCohnen.
The comment on this change is: added a section on _revs_limit.
http://wiki.apache.org/couchdb/HTTP_database_API?action=diff&rev1=15&rev2=16

--------------------------------------------------

  ||''instance_start_time''|| Timestamp of CouchDBs start time (int in ms) ||||
  ||''disk_format_version''|| Current version of the internal database format on disk (int)||||
  
+ === Accessing Database-specific options ===
+ Currently there is only one database specific option you can set via a PUT request. ''_revs_limit''
defines a upper bound of document revisions which CouchDB keeps track of, even after [[Compaction]].
The default is set to 1000 on CouchDB 0.11.
+ 
+ Set ''_revs_limit'' of a particular database:
+ {{{
+ curl -X PUT -d "1500" http://localhost:5984/test/_revs_limit
+ #=> {"ok":true}
+ }}}
+ 
+ Read ''_revs_limit'' of a particular database:
+ {{{
+ curl -X GET http://localhost:5984/test/_revs_limit
+ #=> 1500
+ }}}
+ 
  === Changes ===
  
  A list of changes made to documents in the database, in the order they were made, can be
obtained from the database's ''_changes'' resource.

Mime
View raw message