Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3688

Need help optimizing sql UPDATE syntax in web

$
0
0

I have the following sql statement in my web app.

session.mDbUser.ExecuteSQL("UPDATE ReviewAndRedeem SET Redeem = 'Yes' WHERE RefID = '" + lblRef.Text + "' AND Redeem = 'No' " +_
"AND ActivationCode = '" + Session.pActivationCode + "'")

This process is taking a couple of seconds to perform the job, and I’m not sure why. Of note, the table has just over 900,000 records, so not sure if that can slow things down. Is there a way to speed up this sql UPDATE statement?

7 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 3688

Trending Articles