SQL Server Performance

Source: Internet
Author: User

Index

View the index of the Table: sp_helpindex [Table name]

The essence of clustered index is a two-way linked list

The essence of a non-clustered index is a balanced binary tree that uses multi-layer Classification to continuously narrow the search scope and finally find the pointer to the data.

Therefore, if the column data is too large to be indexed, the hash time and comparison time will be increased.

If the data similarity of a column is large, do not index it. Because a multi-layer tree structure cannot be created, the search range cannot be effectively reduced.

 

Page Splitting:

When a data page reaches 8 K capacity, data insertion or update will occur again, which will split the page and the newly created page will be stored in a discontinuous place, this increases the number of physical fragments, seriously affecting disk I/O.

Solution: Specify the column type, predict the capacity, and set a certain fill factor to strike a balance between disk space and performance.

 

 

 

 

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.