usgin / usgin-cache

Cache a whole system in your CouchDB
0 stars 1 forks source link

Use Bulk Doc API to delete records #38

Closed rclark closed 10 years ago

rclark commented 10 years ago

https://github.com/usgin/usgin-cache/blob/master/features/index.js#L40-L51

This currently deletes records one-by-one and is incredibly slow. Replace this function with one that operates with CouchDB's bulk doc API.

https://github.com/usgin/usgin-cache/blob/master/features/index.js#L40-L51

There is a good example of how to use the bulk doc API to delete records.