Hi,

I have some customers who have told me that when using Nearby sync they're 
losing some data after the sync.

Here's what's happening.

1. Two or more devices are configured to sync with each other using 
peer-to-peer sync.
2. One device has more records than the other.
3. When they bring the other device(s) online, the device with more records 
has those extra records deleted rather than the device coming online 
receiving the extra records from the first device that had more records.

So I'm wondering what could be causing this kind of issue and how I would 
go about preventing it from happening?

I would assume that the device that had more records would have a later 
sequence number than the other devices and therefore the extra data would 
be sent to the other devices. But it seems sometimes the device with fewer 
records is taking precedence.

Any help or ideas would be greatly appreciated.

FYI, in my setup, each device starts out with a copy of the same database 
file before sync is initiated. That is, the user physically copies the 
database file from one device to the other, then sync is setup between 
them. Upon the first time that database is opened, my app will issue a call 
to *[couchDatabase replaceUUIDs:]* if it detects that the device that 
created the database is different than the device that's now opening the 
database. It does this only one time. I mention it here because I thought 
it might be relevant to the issue at hand.

Thanks,

Brendan

-- 
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/41cdbef7-7573-4565-b27d-dd2f9cd43776%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to