07. Index-Nonclustered index (3)-key lookup &rid Lookup

Source: Internet
Author: User
If there is a clustered index and the lookup column is not in the key column of the nonclustered index and the RID lookup bookmark is used in a table that does not have a clustered index, it may be because the overhead is too large to cause some queries to directly perform table scan clustered index all the data is in the index (the data page is also part of the index). So it is possible to locate all the columns directly from the clustered index to the index, which means that the data is found but after the nonclustered index is positioned to the index, it is necessary to find the data rows based on the RID or key recorded by the index, which will result in too many I/O data rows for the data page, and the data page IO will be very large , IO may instead exceed the overhead of a direct page scan, so the system chooses to scan the page so that the bookmark lookup is unpredictable and needs to be avoided as much as possible.

07. Index-Nonclustered index (3)-key lookup &rid Lookup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.