You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "manurajsingh (via GitHub)" <gi...@apache.org> on 2023/04/11 11:27:15 UTC

[GitHub] [couchdb] manurajsingh opened a new issue, #4523: Error: Exceeded maximum number of revisions

manurajsingh opened a new issue, #4523:
URL: https://github.com/apache/couchdb/issues/4523

   Hello All
   
   I am on CouchDB 3.3.1.
   
   I am invoking a purge request to remove 50,000 documents, where my CouchDB contains about 150,000 documents.
   
   I have updated local.ini with following
   `[purge]
   max_document_id_number = 100000`
   
   as well as changed the _purged_infos_limit for that couch database to 100,000 (upped from 1000 default)
   
   In either of the cases, I am getting back error informing me 
   
   "{"error":"bad_request","reason":"Exceeded maximum number of revisions."}<EOL>"
   
   Please could you indicate what is wrong with my configuration.
   
   Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] nickva commented on issue #4523: Error: Exceeded maximum number of revisions

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on issue #4523:
URL: https://github.com/apache/couchdb/issues/4523#issuecomment-1508957411

   @manurajsingh did the above suggestion help?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] nickva commented on issue #4523: Error: Exceeded maximum number of revisions

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on issue #4523:
URL: https://github.com/apache/couchdb/issues/4523#issuecomment-1503451993

   I think you'd want to increase `[purge] max_revisions_number = 1000` to your limit.  That's the sum of all the revisions in the batch. `max_document_id_number` increase the max number of document IDs only.
   
   A bit better advice might be to break up your purge requests into smaller batches. I don't think we tested or intended batch sizes to be on the order of 100k docs. More like something below 10k or so.
   
   An improvement here could be to auto-batch them, so we could post a large number to the API point but internally it would be broken into more manageable, smaller batches.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] manurajsingh commented on issue #4523: Error: Exceeded maximum number of revisions

Posted by "manurajsingh (via GitHub)" <gi...@apache.org>.
manurajsingh commented on issue #4523:
URL: https://github.com/apache/couchdb/issues/4523#issuecomment-1557284008

   That helped thank you.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] manurajsingh closed issue #4523: Error: Exceeded maximum number of revisions

Posted by "manurajsingh (via GitHub)" <gi...@apache.org>.
manurajsingh closed issue #4523: Error: Exceeded maximum number of revisions
URL: https://github.com/apache/couchdb/issues/4523


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org