Sql Nolock Kullanımı

Kullanımı

Sql Nolock Kullanımı. Elbette performans yaptığımız işlere ve isteklere göre değişebilir. I use with nolock hint particularly in sqlserver 2000 databases with high activity.

Saving Your Sql Execution Plan
Saving Your Sql Execution Plan

The main difference is that you can use nolock on some tables but not others if you choose. Nolock is a hint that overrides the isolation level for the corresponding query. Sql server table hints with nolock best practices.

Consider you are updating multiple records within a transaction.

A normal sql select query will wait for the transaction to complete thus degrading the performance of the application or screen which is executing the select query. Yaptığım işlemlerde en performanslı çalışan sorgunun bulk insert olduğunu gördümwhile ve cursor uzun işlemlerde 50dk 40 dk sürerken bulk insertin 2 dk sürdüğünü gözlemledim. Avoid using these hints in this context in new development. Sql serverda with nolock tabloların kilitlenmesini engelleyen bir yapıdır.