Deleting blank columns & performance improvement

Has anyone ever compared appโ€™s performance between leaving the blank columns on spreadsheet/tables and without (Iโ€™ve seen this tip in an AppSheet clip once). I, myself, have not seen the different but this may be because my file is not big enough.

Regards,

Solved Solved
0 10 2,083
1 ACCEPTED SOLUTION

And you delete โ€œcolumnโ€ they are not in use. It will run Appsheet faster as well, when we work on spreadsheet like Google sheet.

View solution in original post

10 REPLIES 10

There is a cell limit to Gsheets (itโ€™s huge, but itโ€™s there) - and itโ€™s a CELL limit, not a data limit or something else - so deleting any empty columns will allow you to extend the capacity of your table to hold rows.

But once you get to the point where youโ€™re reaching a cell-limit, you might want to think about migrating something to a SQL - or at least work on a way to clean up your data and shrink it down.

Hi there,
I am not a developer but i am using AppSheet. This cell limit in Gsheets is hampering my app. I want to know what is the best alternative for me to use. Please suggest an alternative wherein I can do calculations like that of googlesheets or excel. I would appreciate a quick response.

Hello @Ovais.Shah.

The ultimate solution is to migrate all the calculations into AppSheet itself; itโ€™s a general guideline to limit the number of formulas running in a google sheet, as this will make your app run slow.

As a quick fix: try spreading things out into different sheets, this way youโ€™re spreading the load around.

Hey @MultiTech_Visions i got a quick question, so itโ€™s all around better to have all calculations in appsheet? even if it involves the use of heavy formulas like select(), lookup() and combinations of those two?

Hello @Rafael_ANEIC-PY

Yes, it is ALWAYS a better idea to put things inside of AppSheet - but care must be taken WHERE youโ€™re putting these โ€œheavyโ€ formulas.

Virtual columns, for instance. If youโ€™ve got a formula like this (prepare yourself):

I would NEVER put that inside a virtual column; there is way too much happening inside there - especially the LOOKUP() thatโ€™s inside the SELECT(), never do that in a virtual column.

But in reality, many times the data that a formula like this is calculating may actually be a โ€œstaticโ€ value - in the sense that it only changes when the row data changes. (Not this particular example, but I wanted something of a crazy formula to show. )


Itโ€™s all about variable handling and data subsets.

Sometimes itโ€™s necessary to copy a piece of data from one โ€œlayerโ€ of your data structure to another - just to make it easier on the system. And if you MUST have a heavy formula, you can reduce the load on the server by creating slices that hold sub-sets of data.

If Iโ€™ve got a crazy formula like the one above; Iโ€™d rather run that over a slice that contains 40% of the records that the original table.

What happens if I leave formulas on the sheet?


Then every time data is submitted to the sheetโ€ฆ AppSheet waits for the new row calculations BEFORE moving on to the next.

This is because there might be things that need to be triggered or updated between one data push and the next.
Think about it like this: if you didnโ€™t wait for the formulas to update when YOU were working in the sheet, then after you entered one piece of data things might be off for when youโ€™re entering the next piece of data - AppSheet works the same way, just a bit faster cause itโ€™s all server-to-server.

So if Iโ€™ve got 15 updates queued upโ€ฆ itโ€™s one at a timeโ€ฆ

  • first update is pushed to the sheet
    • then we wait for any row formulas to update
  • then the 2nd can fly
    • and we wait again.

rinse and repeat.

Hey @MultiTech_Visions, thanks you for giving me such a complete answer, i love your videos btw, i learned a lot from the one about long forms.

Virtual columns, for instance. If youโ€™ve got a formula like this (prepare yourself):

I was asking exactly because of that kind of monstrous solutions, like this one:

I use that one to make a โ€œsummaryโ€ table view for showing within a dashboard with filters

Then every time data is submitted to the sheetโ€ฆ AppSheet waits for the new row calculations BEFORE moving on to the next.

I see, so if i have 0 spreadsheet formulas appsheet can โ€œskipโ€ that waiting period in each sync? that seems like a huge time save, thank you again Matt.

Iโ€™ve never tested this. When you say โ€œblank columns,โ€ do you mean columns in your sheet that are completely blank (no headers) and are not listed as columns in the table? If so, I donโ€™t think it would affect the AppSheet side of the app directly. However, I know that Ben Collins has pointed out that excess blank columns and rows can contribute to slow Google sheets. I also know that slow Google sheets, in turn, can cause slow app syncs:

If you mean blank columns (or blank cells) inside of AppSheet tables, Iโ€™m not sure.

By the way, at first I thought you were asking about blank rows, a question I had asked earlier:

I know youโ€™re asking about columns, not rows, but I thought Iโ€™d add this as a little footnote.

Iโ€™ve deleted blank rows (about 800 rows+) in all sheets and I think I can feel that it syncs faster.

And you delete โ€œcolumnโ€ they are not in use. It will run Appsheet faster as well, when we work on spreadsheet like Google sheet.

Hopefully this is not just placebo