SQL Server->> Online index rebuilding (online indexing rebuild)

Source: Internet
Author: User

SQL Server Enterprise Edition is supported for online index rebuilds. So how does an online index rebuild work and how does it affect our queries?

Since it is online, SQL Server keeps the existing index available to the user, which means that it does not modify the existing index and its associated statistics. Then it is assumed that the approach is similar to SQL Server switch partition-minimizing data offline time. It should be Mr. Index and statistics, this time the new index and statistics are definitely allocated object_id, internal must be already visible, but for users outside access is not visible. After the index rebuild is complete and the new statistics are established, the Sch-x lock on the application table points to the new index for the existing index. The new indexes and statistics are visible after completion. It then re-compiles all queries that refer to this table.

So what about index reorganization? The work of index reorganization is to fill the end data of the index data as far as possible into the front empty page, it does not update the statistics as the index rebuilds, and will not cause the query to recompile.

As to whether this is related to the mode of isolation. Isolation mode is only related to data page access, how can it be related to statistical data?

Reference:

Would SQL Server use ' incomplete ' or ' dirty ' statistics during online index rebuild?

SQL Server->> Online index rebuilding (online indexing rebuild)

Related Article

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.