How does upload work in terms of resuming?

Hi.

I haven’t found any definitive info on this. If I have a RealmObject that is kinda big, like let’s say 4MB, and I save it while offline, and then I connect and I get disconnected for any reason when it has reached 2MB, what will happen next time I have Internet? does it resume or restart?

Thanks

Realm writes are transactional - a write is either all or nothing. I believe this holds true for sync’ing as well.

When the data is committed (when sync’ing) the SDK notifies the sync engine to sync with Atlas. If that fails, the sync is canceled and changes are rolled back.

Based on that, I would guess the sync would restart since the process failed on that single object.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.