I am using couchbase sync gateway public API
DELETE /{db}/{doc}+?rev=+_rev
for multiple documents async deletion and got error:
error: Service Unavailable,
reason: Database server is over capacity
I noticed that
- Some of the documents deleted successfully and some failed.
- This only happens for
DELETE
not forGET
, i.e, when I async get multiple documents' revision identifiers via APIGET /{db}/{doc}
, it is working fine. I guess the reason isGET
is lighter.
So question is:
- What's the capacity of DELETE and how to increase?
- If no way to increase, how to delete multiple documents in an efficient way?
Thanks!