Query Tuning Week: What’s the Difference Between Locking and Blocking and Deadlocking?
'If Erik takes out a lock on a row,
and no one else is around to hear it,
that’s just locking.
There’s nothing wrong with locking by itself. It’s perfectly fine. If you’re the only person running a query, and you have a lot of work to do, you probably want to take out the largest locks possible (the entire table) in order to get your work done quickly.
You don’t want to monitor for locking – it just happens, and that’s okay. Until…
If Erik takes out a lock on a row,
and shortly thereafter Tara wants that same row,
that’s blocking.'...
Trackbacks
Die Kommentarfunktion wurde vom Besitzer dieses Blogs in diesem Eintrag deaktiviert.
Kommentare
Ansicht der Kommentare: Linear | Verschachtelt