What is faster in T-SQL?
DELETE * FROM ... WHERE A IN (x,y,z)
or
DELETE * FROM ... WHERE A = x OR A = y OR A = z
In my case, x, y, and z are input parameters to the stored procedure. And I try to execute my DELETE and INSERT statements as efficiently as possible.
performance optimization profiling tsql sql-optimization
Zyphrax
source share