TAILIEUCHUNG - Microsoft SQL Server 2008 R2 Unleashed- P145

Microsoft SQL Server 2008 R2 Unleashed- P145:SQL Server 2005 provided a number of significant new features and enhancements over what was available in SQL Server 2000. This is not too surprising considering there was a five-year gap between these major SQL Server 2008 is not as much of a quantum leap forward from SQL Server 2005 | 1384 CHAPTER 37 Locking and Performance Page2 FIGURE Deadlock scenario due to locks on index keys. NOTE As deadlocks occur SQL Server begins reducing the deadlock detection interval and can potentially go as low as 100ms. In addition the first few lock requests that cannot be satisfied after a deadlock is detected immediately trigger a deadlock search instead of waiting for the next deadlock detection interval. When deadlock frequency declines the deadlock detection interval begins to increase back to 5 seconds. You can influence which process will be the deadlock victim by using the SET DEAD-LOCK_PRIORITY statement. DEADLOCK_PRIORITY can be set to LOW NORMAL or HIGH. Alternatively DEADLOCK_PRIORITY can also be set to any integer value from -10 to 10. The default deadlock priority is NORMAL. When two sessions deadlock and the deadlock priority has been set to something other than the default the session with the lower priority is chosen as the deadlock victim. If you have lower-priority processes that you would prefer always be chosen as the deadlock victims you might want to set the process s deadlock priority to LOW. Alternatively for critical processes you might want to set the deadlock priority to HIGH to specify processes that should always come out as the winners in a deadlock scenario. Avoiding Deadlocks Although SQL Server automatically detects and handles deadlocks you should try to avoid deadlocks in your applications. When a process is chosen as a deadlock victim it has to Locking Contention and Deadlocks 1385 resubmit its work because it has been rolled back. Frequent deadlocks create performance problems if you have to keep repeating work. You can follow a number of guidelines to minimize if not completely eliminate the number of deadlocks that occur in your application s . Following the guidelines presented earlier to minimize locking contention and speed up your transactions also helps to eliminate deadlocks. The less time for which a .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.