Question about Query-based Realm Sync

Hi,

I’ve seen all around the documentation that Query-based sync is deprecated, so I’m wondering how should I got about my situation:

In my app (using Realm Cloud), I have a list of User objects with some information about each user, like their username. Upon user login (using Firebase), I need to check the whole User database to see if their username is unique. If I make this common realm using Full Sync, then all the users would synchronize and cache the whole database for each change right? How can I prevent that, if I only want the users to get a list of other users’ information at a certain point, without caching or re-synchronizing anything?

Thank you for your help.

@Jean-Baptiste_Beau You can call a Realm function to perform a lookup on the User collection to make sure it was unique before proceeding:

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