cloudant / sync-android

A JSON-based document datastore for Android applications
Apache License 2.0
267 stars 91 forks source link

Is there any plan to include selectors for filtering _changes in the replication process? #560

Closed jjrodrig closed 6 years ago

jjrodrig commented 6 years ago

We are working on a mobile application that uses Cloudant Sync. So far, it has been very successful. Thanks for your work.

We are using the filtered replication mechanism based on a filter function for the Pull replication process. The filter function in CouchDB/Cloudant is know to be quite inefficient as it has process the complete database in order to obtain the result.

CouchDB 2.0/Cloudant NoSQL DB support _selectors in the filtering of the database changes. Selector can be supported over Mango indexes and it can be much more efficient than the filter functions.

Is there any plan to include support for this kind of filtering in Cloudant Sync?

Thanks, Juanjo

ricellis commented 6 years ago

Right now we don't, but if people want to +1 this issue we can gauge demand for it.