I am developing a Flutter app using Firebase as a database. I want to reduce the read operation because every time user clicks on the screen it reads again. So I want to get all the data and access it from anywhere to reduce read operation. How can I achieve this?
2
-
1You can use cache in firebase stackoverflow.com/questions/57386003/…Amir Mohammad Shams– Amir Mohammad Shams2022-10-31 08:06:44 +00:00Commented Oct 31, 2022 at 8:06
-
It's hard to suggest how to improve your code without seeing it. Can you edit your question to show the minimal code that reproduces the superfluous reads? Also see: how to create a minimal, complete, verifiable example, as following the guidance here drastically increases the chances that someone can help.Frank van Puffelen– Frank van Puffelen2022-10-31 14:17:57 +00:00Commented Oct 31, 2022 at 14:17
Add a comment
|