Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Is CouchDbInstance.replicate() asynchronous?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matt Martin  
View profile  
 More options Oct 3 2012, 11:09 pm
From: Matt Martin <matt.m.u...@gmail.com>
Date: Wed, 3 Oct 2012 20:09:18 -0700 (PDT)
Local: Wed, Oct 3 2012 11:09 pm
Subject: Is CouchDbInstance.replicate() asynchronous?

Experiment:

1. I add a new document to my remote database.
2. I launch a new "ReplicateService" that replicates from the remote server
using dbInstance.replicate(myCommand).
3. The "ReplicateService" completes and reports back to a handler that
there were no changes to the local database.
4. The UI loads and does not show the new document I added.
5. I comment out the line that launches the ReplicateService, recompile,
and relaunch my app.
6. The UI loads without launching a ReplicateService (commented out).
7. I observe through the UI that the document I added to the remote
database is now present on my Android device from the previous replication.

Is CouchDbInstance.replicate() asynchronous and if so, how do I wait for it
to return?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marty Schoch  
View profile  
 More options Oct 4 2012, 8:47 am
From: Marty Schoch <marty.sch...@gmail.com>
Date: Thu, 4 Oct 2012 08:47:01 -0400
Local: Thurs, Oct 4 2012 8:47 am
Subject: Re: Is CouchDbInstance.replicate() asynchronous?
Yes, the replication commands are asynchronous.  The official API
currently lacks any good way to monitor the progress.  See this
thread:

https://groups.google.com/d/topic/mobile-couchbase/epp16Afu8NQ/discus...

for some ideas about how to work around it for now.

marty


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »