First off, let me apologize for the cryptic title, but I wasn't sure what to call this thread.
I'm pulling a list of users from a web service that I'm integrating into an application that I'm modernizing. Previous versions of this app stored users in a table, whereas now they're being pulled from a web service. Certain users are assigned certain tasks, so I have a table in the database that matches user IDs with task IDs.
Right now, I've pulled the user data from the web service into a new query, using QueryNew() and its siblings. But now that I have my hands on that data, I've realized that I can't use it.
In the past, I've done inner joins do things like list users with their tasks, assign tasks, etc. I've done this using JOINS in my queries. But now I can't figure out how I'm going to duplicate this using external data.
One idea I have is to do an INSERT into a users table in the database as soon as the application is loaded into a browser. If I wrap a try/catch block around the query, I won't have to worry about errors on existing IDs. Then I can use my old code as-is.
But is there a better way?