I’ve been using the 'Set Item to Storage" logic node to save my 20,000+ data (and growing) to my local storage in order to reduce the waiting time when launching the app.
However, the flow works fine when I’m using a small amount of data but fails when I tried to store a large amount of data.
I dont think that there is a limit for the size you can store other than the memory of the device.
But in general i dont recommend that practice just to save time its best to use on device storage only when you want the data offline, the better solution, is to query and filter in your backend so you only retrieve the data needed each time. that way, you will never have to retrieve that huge amount of records.
Hmmm because I’m doing an accounting system, and I the data of all transactions one existence to come out with the balance sheet figure
I can use backend to calculate the aggregate amount, but I’m worried that it will put a significant burden on the backend capacity, that’s why I’m trying to put most of the work on the device
Btw just look at the error message and it is indeed limited by the quota
Error: Failed to execute ‘setItem’ on ‘Storage’: Setting the value of ‘@appgyverApp/338065/default/local-resource:journalStorage:d600d6f8-8af9-47e6-8395-318863a17859’ exceeded the quota.
the same problem above descriptive.
The size of my database and the error: “Error: Failed to execute ‘setItem’ on ‘Storage’”.
Do you know if the limite is in SAP Appgyver or in the app? Did you solve it?
Like @Dimos_Vamvourellis said, it might be that the device does not have enough memory for the data, or does not allow one app to hog that amount of storage/memory. If setting a smaller amount of data works but 10k lines doesn’t, it’s a memory issue.