HomeiOS Developmentios - Firebase/Firestore, CoreData & Caching.. a good suggestion?

ios – Firebase/Firestore, CoreData & Caching.. a good suggestion?


We have now a really massive app and use Firebase as the info backend.

For example: When the app is launched for the primary time, all clients will probably be fetched from Firebase. Up to now we cached all clients domestically within the UserDefaults (sure I do know that is not what they’re meant for .. meh :/) and haven’t re-fetched all clients when the app is restarted, solely the brand new ones, or these which have been modified.

This works nice, however the knowledge units are getting too massive (hundreds of data). That why we want a special resolution. The principle motive for caching is after all to maintain requests to Firebase low.

My thought now was to not cache the info within the UserDefaults, however with CoreData.

Load Information from Firebase ==> Retailer domestically with CoreData

Q: Is there an individual right here who has expertise, or perhaps a comparable resolution already used? Is my thought good or are there “higher” options?

I might be very completely happy about feedback and opinions.

Thanks, Peace.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments