Skip to content
Advertisement

SQL UPDATE SET SELECT slow [closed]

I have a SQL UPDATE, but runtime is too long. Record count more than 400000.

Advertisement

Answer

Make sure you have indexes on the barcode columns in both tables. Then use a JOIN instead of a subquery:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement