Save firebase database to on-device-storage


I did make an app for storage management of chemicals. At the moment, all chemicals are stored in an firebase database. Because there are about 300 entries with 12 variables in each entry, the search is quite slow, and it needs lots of reads in firesbase.
At the moment I use a container that is repeated with following formula:

I now want to store the whole database on the local storage after every start of the app, and search in this local data variable. My question is:
How do I store the whole database from firebase in a local data variable?

Thank you for your help,


To store the local database to a local data variable you would need to either recreate the schema for an on-device data collection or dump the data into storage via get/set storage flow functions. My guess is the latter would work better for you. Check out also this thread: Local storage usage