I need to fetch couchdb documents by a bunch of ids. Is there an request / API to do it ? I don't want to create a view (id, docs) and then do a find by keys. when the id b-tree already exists
You should use the bulk API documented here.
It could look something like below.
demodb
)_all_docs
for the viewrev
), be sure to pass include_docs=true
curl -d '{"keys":["docId1","docId2","docId3"]}' -X POST http://127.0.0.1:5984/demodb/_all_docs?include_docs=true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With