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

Trong ý nghĩa một, SQL Server đã có chỉ số lọc từ SQL Server 2000 với quan điểm lập chỉ mục. Hiện không có lý do tại sao một điểm lập chỉ mục không thể có bao gồm một điều khoản ở đâu và bao gồm dữ liệu từ một bộ lọc của các hàng, nhưng chỉ số lọc chắc chắn dễ dàng hơn để tạo ra hơn so với quan điểm lập chỉ mục, và họ chỉ số chức năng như bình thường không tập trung, đó là một Segue xuất sắc vào các chủ đề tiếp theo, chỉ. | Part IX Performance Tuning and Optimization In a sense SQL Server has had filtered indexes since SQL Server 2000 with indexed view. There no reason why an indexed view couldn t have included a WHERE clause and included data from a filtered set of rows but filtered indexes are certainly easier to create than indexed views and they function as normal non-clustered indexes which is an excellent segue into the next topic indexed views. Indexed views For strictly OLTP operations insert update delete small selects I firmly believe that a purely normalized design performs best. However for reporting analysis and selecting large complex queries a solution that denormalizes and pre-aggregates data is the answer. When the denormalized and pre-aggregated data needs to be real-time an excellent alternative to base tables includes indexed views a custom designed clustered index that is updated when the base tables are modified and can serve as a materialized view to denormalize and pre-aggregate data. Instead of building tables to duplicate data and denormalize a join a view can be created that can join the two original tables and include the two source primary keys and all the columns required to select the data. Building a clustered index on the view then physically materializes every column in the select column list of the view. The resulting indexed view is in effect a custom multiple-table covering index. r- r - Although indexed views build on normal views they should not be confused. A normal j 1 view is nothing more than a saved SELECT statement no data is physically stored as explained in Chapter 14 Projecting Data Through Views. Indexed views actually store the data on disk. An indexed view is Microsoft s terminology for a materialized view. Numerous restrictions exist on indexed views including the following The ANSI null and quoted identifier must be enabled when the view is created and when any connection attempts to modify any data in the base tables. The index .

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.