I am a LiveCode beginner and haven't used SQLite before as well..
I have a few database UPDATE's I am running on my machine using SQLite.
I noticed that it takes quite a long time (> 1600 Milliseconds) to make about 10 update orders.
My code looks like this, repeated for about 13 times. two of the update commands are in IF brackets testing if radio button has a or b and then executes a different update.
Code: Select all
put "Update settings set SettingValue=" & quote & "kg" "e & "where SettingNo='MeasUnit'" into tSQLUpdateWeight
### run query
revExecuteSQL tDatabaseID, tSQLUpdateWeight
put "Update settings set SettingValue=" & quote & field "InputDBEngine" "e & "where SettingNo='DBEngine'" into tSQLUpdateDBEngine
### run query
revExecuteSQL tDatabaseID, tSQLUpdateDBEngine
can I do this differently? my session should remain open, but can I go into some transaction mode or so? Or does the if-clause based on the radio buttons make it slow? The variables are not declared before I assign a value.
Thanks,
Pascal