Hello guys,
Our application is using realm with the partition based sync strategy.
We are in the middle of defining/changing the partition strategy of our realm application. The application database is more or less not growing in size on most of the collections, but some collections, for example the collection named “documents”, is growing rapidly. In our case, we only need the last 3 months of the “documents” in each partition and want to keep the older ones in our database. Therefore, we are searching for a strategy which allows us to only store a (date-)range of certain collections in the realm partition. Or in other words we want to keep all data of most of the collections but clip the tail on certain collections if the collection-documents do not lie the date-range condition we define.
We hope that there is a way without the need of enforcing us to manage 2 realm apps. We hope that we can solve this with 1 realm sync application.
Furthermore, we also thought about the new Flexible sync strategy, but we want to go into production in the near future and the docs clearly state, that flexible sync is still in preview mode and should not be used in production code.
Hope you guys know a way to help us out here, seems a little tricky …