Database building

Im currently working on an inspection app that would be used by over 200 sites at the same time. As i cant realy test the app usage at this stage of the build, would it be better at this time to have some calculating features be done at the DB rather in the app itself? Im worried that so many users would crash my app if each user would constantly engage with the DB

Which data base are you considering as data source to the app? Google Sheet ? or SQL?

Googlesheet should have quota which limit the access to the data source, but merely run out, but it you stands to the safety side, i recommend you use SQL as data source, taking into account scale of he app in the future.

Currently im on google sheet. My concern about sql is for example if i run a function on google sheet, how do i do the same in mysql.

But my question was actually, what would be better, run all my queries in the app or is it better to run them in the back on the database?

Depending on the formula within googlesheet, but calculation within sheet make the app run slower. This should be another critical issue you may face when scale up the app to number of the users.

Can you reproduce the same calculation with Appsheet? Or are you using the function / expression within googlesheet which could not be reproduced by using Appsheet expression?

Appsheet formula will run far faster than googlesheet calc.

I basicly have several apps ( app per user role: employee, manager, supervisor etc. ) and all apps run on the same tables when each user role can have access to different data within those tables. In my inspection app the employee scans barcodes during his shift. Right now, as soon as a barcode is scanned, a set of functions runs to retreive relevant data regarding that scanned checkpoint. The employee doesn’t require that information but his manager does. If there was a way for appsheet to “know” if there is new data in the sheet and then run functions that would be great, but as i understand, unless the manager forces a sync manualy, nothing happens.

Unless I see full picture of your project, I can say nothing firm, but there should be various tips you can employ.
Understand different apps are using the same single table, so i reckon you use security filter or slice to get the necessary set of rows only to each app.
In terms of scanning, on my working app, I m using functions of deep links. Once the user scan and save the form, action (deeplink) is triggered and then prompt the user to the set of rows.

LINKTOFILTEREDVIEW ()

Hope this may help

The link to filterd view is in the user who does the scan side?

Yes correct.

When the user scans barcode they do so on the new form view. Once this new form is saved, then app capture this code as text and filter the target view you wish to bring them . But target new at least need to have column with barcode as string to filter the table down.

@1111 Concerning building for a database. I have two main contributions to this discussion.

  1. If you think you might be using a database in the future (and if you have 200 sites you probably will), I recommend building the apps to support future database usage. This means NO formulas in the Google sheets and all calculations in the app. I do use query formulas to create new sheets of data such as Monthly Revenue calculations, etc, because i know in the database world I will need to create scripting or some other specialized calculation structure to achieve it.

Why do this? When it comes time to switch to a database, it will be basically a lift and shift. Most databases these days support CSV, or other type of import functions. You can simply dump the Google sheets and import them into the relational database.

If you have formulas all over your sheets, it will be a very tedious operation to migrate those into a database version of your app!!

  1. Be prepared for the cost to move to a database in AppSheet. Deployed Apps require a Business level plan to access databases. PLUS there is an additional charge for each database INTEGRATION you utilize. An integration is simply the connection to a single database type such as MySQL, MariaDB, Postgres, AWS, etc. The published prices for the Business plan is $15,000 plus an additional $15,000 to provide a database integration. That’s $30,000 to move to a database connection!

These are their published prices but depending on your individual needs, you may be able to negotiate more suitable pricing structure. But do not expect it to be cheap.

These prices are from the appsheet side?

Yes, that’s correct. And I failed to mentioned those are yearly pricing. But again, when it comes time to commit, talk with AppSheet. I feel they are accommodating and will try to work out a satisfactory arrangement.

To contrast, I have seen other companies wanting $6,200 per MONTH for lesser capabilities!

Thanks