Hi Prasanna Kumar,
Sorry for late reply. We are currently investigating general performance of pull replication for Android device.
Some questions about your environment:
>> I am working with around 20,000 documents in database each document would be 10 to 20mb based on attachments.
It seems 200GB - 400GB of data on your server. I believe your app downloads part of all documents. How many document could be replicated to each Android device? And How long does it take to download all documents to Android device?
Answer for your questions:
Questions :
>> 1) I think While doing pull replication from server the entire CPU scheduling taking for replication in background, how i can stop that ?
You can stop replicator by calling stop() method. Replicator does not stop immediately, it stop after currently processing HTTP requests.
>> 2) And also am using android AsyncTask for background replication, is there any way to achieve the replication in background with out effect to UI ?
We are using ScheduledExecutorService for Replicator for asynchronous tasks including replicator.
Currently Thread priority is default. If you can compile Couchbase Lite for Android by yourself, you can modify thread priority by modifying Manager.java
Please let us know if you have any further questions.
Thanks,
Hideki