Prebuilt database documents are still being synced

34 views
Skip to first unread message

Justin Camp

unread,
Jan 7, 2015, 11:30:42 PM1/7/15
to mobile-c...@googlegroups.com
Hi guys.

Is there a particular method to properly curate a prebuilt database so existing documents don't sync? Here's what I'm doing:

I run our app specifically set to only one channel so it syncs all the data in that channel into the client DB. I then copy that db into the xcode project and follow the steps in the documentation to load that db into the client upon initial load. The client loads the data just fine, but when I then go to sync other channels, it appears to be syncing all of the documents that were pre-loaded.

In other words, all prebuild data is being synced again from the server.
Is it just hand-shaking to check revisions against the server?
As these documents have not changed between the creation of the prebuilt db and when I go to sync, I expect those documents not to sync as the latest revisions should already be on the client.

Am I missing something?

Thanks,
Justin

Jens Alfke

unread,
Jan 8, 2015, 2:36:54 AM1/8/15
to mobile-c...@googlegroups.com
It's actually just scanning all the doc/revision IDs from the server, not downloading the document contents.

But it shouldn't even be doing that. However, fixing this is trickier than it sounds. Pasin is working on it currently.

—Jens 
--
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 mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/0d9a1056-56ee-4a00-b320-7e6df636d3a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Justin Camp

unread,
Jan 8, 2015, 11:32:20 AM1/8/15
to mobile-c...@googlegroups.com
Thanks Jens!
Is there an open issue ticket I could track?

Cheers!
Justin

Jens Alfke

unread,
Jan 8, 2015, 12:41:31 PM1/8/15
to mobile-c...@googlegroups.com

On Jan 8, 2015, at 8:32 AM, Justin Camp <j...@intuitivecreations.com> wrote:

Thanks Jens!
Is there an open issue ticket I could track?


—Jens
Reply all
Reply to author
Forward
0 new messages