Is there a way to count the number of un-synced Asymmetric documents on swift? I would like to be able to show the user the number of documents that are not yet synced to the Realm.
I don’t believe there’s a simple way to do this, @Tyler_Collins . You could try a couple of approaches:
- You could try a progress notification on a sync session, which you can see in our documentation here: Check Upload and Download Progress.
- You could write some logic to keep a count of documents on the device, and use the MongoClient to check the number of documents synced to the backend, and diff those to show a count of unsynced docs.
Asymmetric Sync was designed to support heavy insert-only workloads, so I don’t believe the design incorporated a simple way to report on that in a client app. If you want to share more about your use case, perhaps we can come up with another suggestion for you.