This question is based on the firebase documentation here.
I am trying to implement Firebase Database in my app. What I'm trying to achieve is, I have a fairly huge database (~2MB) on firebase servers, which I don't want getting fetched everytime app fires a query.
I want to sync (new entries/edits) to the database only when the app starts. From that moment, in that session, whenever the app fires a query, it should get fired only on the offline database, even if active internet connection is available. I want to achieve this to make sure to use least internet data and gain maximum speed.
Is there any way (intended or a hack) to achieve this?
[Question edited]