Realm Sync Optimization Problem

Hello,

My Realm RN clients write a considerable amount of of data over the year as “scan_records”, I am required to sync this data back onto all clients in the partion so I can query some data for the scan_records for that day.

I dont need to sync all historical scan_records, only todays records.

Is there any way I can set a query in my sync configuration to only read/sync scan_records from atlas that are less than 24hours old?

@Patrick_Lambert You could use a scheduled Realm Trigger to update the partitionKey value of certain documents which are now not within the 24hour range. This would remove them from the sync partition - https://docs.mongodb.com/realm/triggers/scheduled-triggers/