I am using sqlite to perform a query within an xlate. I perform a single query per message to minimize access to the database. What I am finding is that the CPU usage goes up to 98% with the query when processing many messages. If I take the result of a query and manually populate the @queryresult variable and then deactivate the query. CPU usage is nearly non existent.
Here is the skinny of the commands used. Should I be doing something else to prevent such CPU usage?
sqlite oeDB $dbPath
set qryValue [oeDB eval “SELECT * FROM `[lindex $xlateInVals 3]` WHERE Acct_Nbr ='[lindex $xlateInVals 0]’ and Transcribed_Dt = ‘$t_date’ and Transcribed_Tm = ‘$t_time'”]
oeDB close