Hello!
We are about to integrate Realm into our React-Native app. Atm we use Redux and its getting pretty huge. We use redux-persist to keep it offline but we are now gonna face the issue for syning thousands of tasks…
But we are afraid of running into the MB limit using Realm we i had a few quesitons:
Main questions
- How can we split data? I read stuff about partitions but we are not using sync. How can we generate mulitple “storage” chunks. So we can have like 3 different if needed (16 mb is a lot for JSON but still)
- We are using 100% functional components (0 classes) so we already integraed realm to be a ref and usable using context. But we are still deciding about the schema way. Using classes or just a object. And the documentation says to use class Car { but the api docs say its recommanded to extend the Realm.object one. And we would like to use classes because we can use constructor and setters/getters.
What do you guys recommand. - Final quesiton, we looked as sqlite, watermelondb and the old mongodb react native library. Do you guys thinks this is a good way to keep our data offline instead of redux persist (async storage). So using realm to keep all data offline, and we are then gonna use for example a flat list with data from realm with a onEndReached to load next page. (for example)
I would love to hear back!