Avoiding deadlocks and blocking with the ForceSeek Table Hint
TABOCC database expert Julian Fletcher describes how SQL’s ForceSeek can be used to combat database deadlocking and blocking. One particular way of using tables in a SQL database can make them particularly prone to deadlocking (and deadlocking’s sickly cousin, blocking). This is where ‘working data’, generated by and used in a complex set of calculations, is temporarily stored in one or more tables. Whereas any one process will probably access only a very small percentage of the rows in a[...]