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: https://www.youtube.com/watch?v=1ZIYVNvRVsY

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. https://www.mongodb.com/docs/atlas/app-services/sync/data-model/data-model-map/#overview

Please let me know if you have any other questions!
Tyler

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