Hey all, on one of my scenes, I have to execute 3 queries on some large data
-
Copy SourceNames from a source table to an ActiveNames table
-
Update ActiveNames table with some data
-
Query and iterate through the ActiveNames table and show all the names
Now, I have no problems with the SQL or iterating through the names, but when I try to execute the 3 queries in order, using db:exec, the third query doesn’t show any data.
I assume I need to give time for the first two queries to finish…
Should I use a timer and delay or is there a way to check if the prior query has finished before executing the next one?
Any advice?
Thanks!