We are running a CouchDB server from which documents are replicated(with a custom filter) through to Couchbase Lite Android and iOS. As the number of documents increases (we have databases that easily have more than 100000 records), the initial pull replication becomes slower and slower. I had written replication filters in javascript and converted them to erlang but both of them seem to be not very helpful and results in a lot of wait time before they are pulled (The erlang one seems slower which is strange as well). Thats a CouchDB issue anyway, and Ill post it there.
I was trying some other alternatives to do the initial pull. Some folks on SO suggested doing a view on CouchDB, getting the required documents and pulling them manually followed by a continuous _changes feed. This way, the views are very fast and you get the results faster to the mobile.
I remember an iOS branch couple years ago that allowed for a RemoteQuery from iOS but it doenst seem to have hit mainstream. What other options are available to execute a view from CouchDB in both CouchbaseLite Android/iOS? Should I just make a HTTP request to the Views and get it or is there a better way ?
Thanks for your help
Raja