TAILIEUCHUNG - Hướng dẫn học Microsoft SQL Server 2008 part 137

Chỉ số chỉ trở nên hữu ích như là họ phục vụ các nhu cầu của một truy vấn, vì vậy thiết kế chỉ có nghĩa là suy nghĩ về cách truy vấn sẽ hướng các chỉ số để đạt được các dữ liệu. ''Thiền và nghệ thuật của chỉ mục''có nghĩa là bạn nhìn thấy con đường truy vấn trong mắt tâm trí của bạn và thiết kế các đường đi ngắn nhất từ truy vấn vào dữ liệu. | Part IX Performance Tuning and Optimization Indexes only become useful as they serve the needs of a query so designing indexes means thinking about how the query will navigate the indexes to reach the data. Zen and the Art of Indexing means that you see the query path in your mind s eye and design the shortest path from the query to the data. What s New With Indexes Indexing is critical to SQL Server performance and Microsoft has steadily invested in SQL Server s indexing capabilities. Back in SQL Server 2005 my favorite new feature was included columns for non-clustered indexes which made non-clustered indexes more efficient as covering indexes. With SQL Server 2008 Microsoft has again added several significant new indexing features. Filtered indexes means that a non-clustered index can be created that indexes only a subset of the data. This is perfect for situations like a manufacturing orders table with 2 active orders. The new star-join optimization uses bitmap filters for up to seven times performance gains when joining a single table fact table with several lookup dimension tables. The new Forceseek table hint as the name implies forces the Query Optimizer to choose a seek operation instead of a scan. Indexing Basics You can t master indexing without a solid understanding of how indexes work. Please don t skip this section. To apply the strategies described later in this chapter you must grok the b-tree. The b-tree index Conventional wisdom says that SQL Server has two types of indexes clustered and non-clustered but a closer look reveals that SQL Server has in fact only one type of index the b-tree or balanced tree index because internally both clustered and non-clustered indexes are b-tree indexes. B-tree indexes exist on index pages and have a root level one or more intermediate levels and a leaf or node level. The columns actually sorted by the b-tree index are called the index s key columns as shown in Figure 64-1. The difference between clustered and .

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.