node-couchdb icon indicating copy to clipboard operation
node-couchdb copied to clipboard

Batch Request For Creating Documents

Open tunix opened this issue 7 years ago • 5 comments

According to CouchDB docs, they allow batch requests for insertion. Would it be possible to add support for it?

tunix avatar Nov 14 '16 12:11 tunix

Sure, do these request exist in CouchDB@2?

1999 avatar Dec 05 '16 09:12 1999

http://docs.couchdb.org/en/2.0.0/api/database/bulk-api.html#db-bulk-docs

tunix avatar Dec 05 '16 09:12 tunix

Seems like I could've provided a lower level interface by renaming "_requestWrapped" to smth public: https://github.com/1999/node-couchdb/blob/master/lib/node-couchdb.js#L319.

Because CouchDB@2 API differs from CouchDB@1. Or...?

1999 avatar Dec 05 '16 10:12 1999

Could this still happen?

Bulk insertion is a very important feature for serious apps

iyobo avatar Jul 04 '18 19:07 iyobo

PRs are welcome here. Unfortunately, I don't have enough time to support this library and also I'm not working with CouchDB anymore.

1999 avatar Jul 05 '18 00:07 1999