> 1) Is replication creating any thread in backgroup(for start/stop)

Yes, Couchbase Lite creates single thread which manages replication. In 
addition to this thread, Couchbase Lite creates multiple thread for 
downloading tasks. 

> 2) And also it taking more CPU resource while doing replication

If the replicator needs to process many documents or large documents, it 
might consume CPU and memory.

Thanks,
Hideki

On Tuesday, October 27, 2015 at 1:10:09 AM UTC-7, PRASANNA KUMAR wrote:
>
> Ok, Right now i have some log's information what is happing while doing 
> replication(stop/start)
>
> 1) When start the replication it is successfully working (but i think some 
> thing is wrong in showing the counts information i mean completedChangesCount 
> and changesCount)
> https://friendpaste.com/5pMtcL70U0kprc4blQUIk0
> 2) When i made the stop replication
> pullReplication.stop();
> pullReplication = null;
>
> Here some of log information when i made stop the replication
> https://friendpaste.com/5rN7Qrp3S2Xdt2YgEkOO3U
> 3) Again i start the replication by the time my location database showing 
> all documents in location
> i mean serverDcouments == localDocuments(true) but replication status is
>
> 10-27 03:51:16.118  29387-29612/com.edcontrol.edcontrols D/Testing 
> replicationīš• REPLICATION_ACTIVE
>
> Even not been idle.
>
> I have few questions  about replication part
> 1) Is replication creating any thread in backgroup(for start/stop)
> 2) And also it taking more CPU resource while doing replication
>
> How we can solve this problem.
>
> Thank you
> prasanna
>
>
>
>
>  
>
> On Tuesday, October 27, 2015 at 12:39:41 PM UTC+5:30, PRASANNA KUMAR wrote:
>>
>> I think background thread i running  in background,once replication is 
>> start.
>>
>>
>> On Tuesday, October 27, 2015 at 12:02:57 PM UTC+5:30, PRASANNA KUMAR 
>> wrote:
>>>
>>> Thank's you reply, Even i did
>>> pullReplication.stop();
>>> pullReplication = null;
>>>
>>> This one also not working
>>>
>>> On Monday, October 26, 2015 at 6:37:50 PM UTC+5:30, James Nocentini 
>>> wrote:
>>>>
>>>> What happens if you dereference the property like this:
>>>>
>>>> pullReplication.stop();
>>>> pullReplication = nil;
>>>>
>>>> James
>>>>
>>>> On Monday, 26 October 2015 13:01:29 UTC, PRASANNA KUMAR wrote:
>>>>>
>>>>> Hi All,
>>>>>
>>>>> I have been working couch base lite android one of my project, I'm 
>>>>> facing the problem while doing PullReplication, I started the replication 
>>>>> but some where i need to stop it(That is my requirement(start/stop)). The 
>>>>> replication started successfully but while stop the replication still it 
>>>>> is 
>>>>> running in background.
>>>>>
>>>>> Note: Here is my code
>>>>>
>>>>> https://friendpaste.com/1A4v0pXZmHCHz8cSRAINUr
>>>>>
>>>>> Even if we are stoping  but still my replication status always showing 
>>>>> active state not going to stop state
>>>>>
>>>>> Can any body me out of here, How i can achieve this or any solutions 
>>>>> for this problem
>>>>>
>>>>> Thank's
>>>>> prasanna
>>>>>    
>>>>>
>>>>

-- 
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/4749ec0c-3263-4b67-8702-58261a343100%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to