what fetchChange will get?

let's say a record have column a, b, c three columns,

at one changepoint, on device A, data was updated twice:

1. update b = 1

2. update c = 2


When fetchChange on device B, what will it get? one change or two changes? (during the change, deviceB was offline and startup)

Will it get the partial change record or the whole record?


During the test, sometimes, I got two changes, and sometimes I just got one change (maybe it is the consolidated final change?)

why is it not consistent?

Replies

Interestingly the command "fetchChange" does not seem to exist. But if you mean "fetchChanges" then the missing "s" answers your question. It returns all the changes.

But it didn't happen always.

I tested again and that it did merge the two changes together.

In another word, fetchChanges only get one change.

As long as Apple can make the data right, I am ok.