SQL Server NOLOCK and joins

前端 未结 3 1943
暖寄归人
暖寄归人 2021-01-29 20:50

Background: I have a performance-critical query I\'d like to run and I don\'t care about dirty reads.

My question is; If I\'m using joins, do I have to specify the NOLOC

3条回答
  •  不知归路
    2021-01-29 21:16

    Neither. You set the isolation level to READ UNCOMMITTED which is always better than giving individual lock hints. Or, better still, if you care about details like consistency, use snapshot isolation.

提交回复
热议问题