TAILIEUCHUNG - Microsoft SQL Server 2008 R2 Unleashed- P135

Microsoft SQL Server 2008 R2 Unleashed- P135: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 | 1284 CHAPTER 35 Understanding Query Optimization FAST n This hint instructs SQL Server to optimize the query to return the first n rows as quickly as possible even if the overall throughput is reduced. In other words it improves response time at the expense of total query execution time. This option generally influences the Query Optimizer to retrieve data using a nonclustered index that matches the ORDER BY clause of a query instead of using a different access method that would require a sort operation first to return rows in the specified order. After n number of rows have been returned the query continues execution normally to produce its full result set. ROBUST PLAN This option forces the Query Optimizer to attempt a plan that works for the maximum potential row size even if it means degrading performance. If you have very wide VARCHAR columns some types of query plans might create intermediate tables and if any of the internal operations need to store and process rows in these intermediate tables some rows might exceed SQL Server s row size limit. If this happens SQL Server generates an error during query execution. When the ROBUST PLAN hint is specified the Query Optimizer does not consider any plans that might encounter this problem. MAXDOP number This hint overrides the server-level configuration setting for max degree of parallelism for the current query in which the hint is specified. KEEP PLAN When this hint is specified it forces the Query Optimizer to relax the estimated recompile threshold for a query. The estimated recompile threshold is the point at which a query is automatically recompiled when the estimated number of indexed column changes have been made to a table by updates inserts or deletes. Specifying KEEP PLAN ensures that the query is not recompiled as frequently when there are multiple updates to a table. This option is useful primarily for queries whose execution plan stays in memory such as for stored procedures. You might want to .

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.