Will making 2 database in firebase realtime database help to reduce cost and increase daily download limit of 360MB per day?
Will making 2 database in firebase realtime database help to reduce cost and increase daily download limit of 360MB per day?
The simplest way to reduce the cost is by reducing the downloads. You can do that by caching the data on local storage as much as possible and continuously sync sensitive data.
While reading different articles, one article caught my eye. I'll summarize my findings and also add the link to the article.
Optimizations Possible:
- User opens the app and goes somewhere in the app where any kind of favorites is listed, let’s say Bus Stop favorites.
- The App requests to the memory cache a list of Bus Stop favorites but as the App has just been launched it returns null.
- Then the App requests to Firebase only the node containing Bus Stop Favorites, which are downloaded from the internet and then billed once.
- A copy of this favorites is saved in the memory cache.
- User plays with favorites, adding, removing or editing them.
- Every time a modification is done the resulting favorites list is saved in the memory cache and also sent to Firebase (because uploading data is free).
- Now the user can leave the App, and unless it is explicitly removed from the recent App stack by the user or killed by Android, the user can come back to the App and continue playing around with the Bus Stop favorites without incurring in extra billing.
Link to the article mentioned. Hope this helps!!!.