问题:
Can someone explain the implications of using with (nolock) on queries, when you should/shouldn't use it? 当你应该/不应该使用它时,有人可以解释使用with (nolock)对查询的影响吗?
For example, if you have a banking application with high transaction rates and a lot of data in certain tables, in what types of queries would nolock be okay? 例如,如果您的银行应用程序具有较高的事务率和某些表中的大量数据,那么哪些类型的查询可以解决? Are there cases when you should always use it/never use it? 是否应该经常使用它/从不使用它?
解决方案:
参考一: https://stackoom.com/question/2seC/什么是SQL-Server中的-with-nolock参考二: https://oldbug.net/q/2seC/What-is-with-nolock-in-SQL-Server
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4280930