amco / dolly

Not an ORM for CouchDB in rails.
8 stars 3 forks source link

Use query for index find #150

Closed javierg closed 5 years ago

javierg commented 5 years ago

Doing a find all, and then filter on Ruby can have performance issues, once there is more index files, this PR changes to use a find by id on the requested index.

It also create a pre-deterministic doc id for Mango indexes.