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. 
http://developer.couchbase.com/mobile/develop/references/couchbase-lite/couchbase-lite/replication/replication/index.html#void-stop

>> 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. 
http://developer.android.com/reference/java/util/concurrent/ScheduledExecutorService.html

Currently Thread priority is default. If you can compile Couchbase Lite for 
Android by yourself, you can modify thread priority by modifying 
Manager.java
https://github.com/couchbase/couchbase-lite-java-core/blob/master/src/main/java/com/couchbase/lite/Manager.java#L138

Please let us know if you have any further questions.

Thanks,
Hideki


On Friday, November 14, 2014 at 5:10:35 AM UTC-8, PRASANNA KUMAR wrote:
>
> Hi All,
>
> I have been working the android couch base lite in android.
>
> The pull replication is very slow than comparing with ios and ipad!!
>
> I am working with around 20,000 documents in database each document would 
> be 10 to 20mb based on attachments.
>
> While doing replication from server the pull replication is very slow and 
> also  because  of the replication in background my UI components(when click 
> on) actions are not happening immediately taking time 25sec time in between.
>
> *Questions :*
>
> 1) I think While doing pull replication from server the entire CPU 
> scheduling taking for replication in background, how i can stop that ?
> 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 ? 
>
> please let me know if you need any furtherer information.
>
> Thank you all in advance.
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/c0692c2a-7d7d-47e8-99f4-270b2e520217%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to