Hi @Steve@Suvrutt_Gurjar If i have a complex and lengthy Spreadsheet formula like the one given below, will it affect the app performance or sync time. How are values from cells with formula fetched by the app. Is the value (result of formula) fetched directly from sheet or does appsheet do the calculation after reading the formula from sheet. I have searched the community for anything relevant but couldn’t find any.
I’m not an Spreadhseet formulas kind of guy so I can’t relate from my experience.
All I can say is what’s available on the docs.
Since the calculation is not done by AppSheet nor your app, this shouldn’t affect performance. Some people even consider this a more efficient way of performing calculations.
The reason spreadsheet formulas have such a significant impact on sync time is because of how the update-system works. You have to think about things in a step-by-step way:
You initiate the sync
AppSheet sends the first update to the sheet
The Sheets API accepts the value, and runs ALL sheet formulas (EVERY SINGLE ONE)
And only after all these formulas have processed does it indicate that it’s okay to move on
It then sends the updated values back to AppSheet
AppSheet then sends the next update
Repeating this whole process over and over for each update
So you can see how, if I had 20 updates to make AND a lengthy spreadsheet formula computation time, these two things combined together would make things take
Do you know how different Performance options or user actions will affect this?
If I have a summary table with many spreadsheet formulas, but the output of those formulas will rarely change, I don’t want them to recalculate unnecessarily.
“When the mobile app reads data from the spreadsheet, the formula values are computed”
This is pretty broad. Does it simply mean that ANY read from any table in the spreadsheet file will cause all formulas (even in other tables?) to be recalculated? Or is there more nuance to what will cause formulas to be recalculated?