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.

Reply via email to