Selectively sync only certain properties to Realm SDK using Device Sync

I have an existing project that uses Realm for Node.js (Electron) with Device Sync enabled. I’m now looking to add a vector database and am following this video from MongoDB:

However, it looks like it adds a plot_embedding property to each item, and it seems like a fairly large array. Is there any way to skip this embedding property when syncing to each device? I imagine I will only need to access the property from the server anyway. Or would you recommend storing the embeddings in a separate collection? Or is the array actually small enough where it won’t make a difference?

Any guidance would be very much appreciated :slight_smile:

Hi, device sync uses a “schema” defined in App Services. Any fields not defined there will not be synced to the device at all.

Please let me know if you have any other questions!

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