Morning All,Hope you're all well and had good weekends.Quick question regards locking, particularly surrounding a delete.If a delete statement has a complex where clause; and say that where clause takes about 3-4 minutes to return. And say the delete itself takes 1 minute to perform.Does a lock blocking lock exist for 5 minutes, or just for the duration of the delete (1 minute) itself.take this snippet:delete from tab1where x=yand a=band assume the where clauses are big.I am trying to shorten the blocking on this table, and don't know if attacking the where the clause is going to help - its specifically deletes on this table that cause blocking...Also, the query is parameterized so i can't recreate the where clause accurately :( CheersAlex
↧