Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuring revs_limit in LiteServ #1291

Closed
sethrosetter opened this issue Jun 14, 2016 · 1 comment

Comments

@sethrosetter
Copy link
Contributor

commented Jun 14, 2016


  • Version: N/A
  • Client OS: 1.3.0-X
  • Server: N/A
snej added a commit that referenced this issue Jun 15, 2016
Allow LiteServ (and CBLManager) to set default maxRevTreeDepth
* New private property CBLManager.defaultMaxRevTreeDepth. This defaults
  to 20. Databases that haven't had an explicit maxRevTreeDepth set will
  default to this value.
* In the REST API, GET of a database returns a property "revs_limit"
  whose value is the database's maxRevTreeDepth
* New LiteServ flag "--revs_limit": the following arg is a number,
  which will set CBLManager.defaultMaxRevTreeDepth.

Fixes #1291
@snej

This comment has been minimized.

Copy link
Member

commented Jun 15, 2016

Implemented on dev branch. Instead of a REST API I added a new flag for LiteServ: --revs_limit 1000 will set the default maxRevTreeDepth for databases to 1000. This affects all databases that have not explicitly had their maxRevTreeDepth property altered in the native API.

To help verify this, when you do GET /db in the REST API, the response includes a new property revs_limit that shows the current value for that database.

@snej snej closed this Jun 15, 2016

@snej snej changed the title Support setting revs_limit via REST in LiteServ Allow configuring revs_limit in LiteServ Jul 3, 2016

@snej snej added this to the 1.3 milestone Jul 3, 2016

@snej snej added the enhancement label Jul 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.