2 / 3
Apr 2024

There is realm.syncSession.pause() in flutter realm. I wonder if I can pause specific collection, let’s say I want to pause only for Product collection. Is there any way I can achieve this?

I would think pausing one collection out of several would cause issues with relationships and references to other objects. e.g. One object may reference another but without them both sync’ing the reference could be to a nil object if it doesn’t exist yet.

What is the use case?

Agreed. If you do have high-priority and low-priority data then you can separate them into separate realms (however many you would like), and pause/resume sync at that level. Changes are queued and exchanged at the realm level, so there is no way to just stop/start changes on a single collection at this time.