1. What is an index?An index is a data structure that the storage engine uses to quickly find records. 2. What data structures does the index have?
By comparing once, the search range is reduced by half. The data in MySQL is not an ordered sequence.
The time complexity of a balanced binary search tree is O(logN). The query speed is indeed very fast, but the cost of maintaining a balanced binary tree is also very high. Typically, one or more left and right rotations are required to achieve balance after an insertion or update.
B+ tree is a variant of B tree, which evolved from B tree and index sequential access method (B tree is rarely used in real life). 3. Why does Innodb use B+ tree as index?
4. Index classificationClassification from the storage structure: BTree index, Hash index, full-text index Classification from the application: primary key index, unique index, composite index From the perspective of physical storage: clustered index and non-clustered index (auxiliary index) Let's talk about what is a clustered index and what is a non-clustered index:
A B+ tree is constructed according to the primary key of each table, and the row record data of the entire table is stored in the leaf node. The leaf nodes of the clustered index are also called data pages, and each data page is linked through a doubly linked list. Clustered indexes are very fast for sorted and range searches of the primary key.
In addition to storing the index column, the pointer to the leaf node is also stored. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: A brief discussion on the application of Html web page table structured markup
>>: Example of compiling LNMP in Docker container
Table of contents 1. Core 1. Get the Dom node 2. ...
mysql-5.7.17-winx64 is the latest version of MySQ...
The complete code is as follows : HTML code: Copy ...
Configure tomcat 1. Click run configuration 2. Se...
Main library execution CREATE DATABASE test CHARA...
Compared with ordinary programs, dynamic link lib...
To search for RocketMQ images, you can search on ...
Background requirements: As the business grows la...
There is a medicine for regret in the world, as l...
What is MIME TYPE? 1. First, we need to understan...
Isolation Level: Isolation is more complicated th...
Uses of new The function of new is to create an i...
translate(-50%,-50%) attributes: Move it up and l...
Table of contents Docker custom network 1. Introd...
Preface When backing up the database, a full data...