当前位置:网站首页>MySQL index
MySQL index
2022-06-12 09:16:00 【Java supernatural Road】
Why not hashmap
- Fuzzy search cannot be done ,hashcode look for
- Range lookup
no need B Trees
depth , Reduce IO
b+ The trees are orderly
Left most matching principle
Cluster index : Primary key ,B+ Trees
Secondary index :B+ Trees , Leaf nodes store all cluster indexes
Index failure
LOL + - * /
not null
like: Not all , The leftmost matching principle will not fail ,% The beginning will be invalid
or :or Index fields before and after are not invalidated , If one is not an index, it will become invalid
L( Joint index ): Index column order , Start with the first index column
Add, subtract, multiply and divide :select Field from surface where age -1 = 20; The index will fail
Take the opposite :not and !=
NULL:is null , is not null , not always , Default values can be set
Use built-in functions : Function does not work on condition column , Add to = The following values can
Automatic conversion : Like columns id yes varchar type select XX from surface where id = 123456
123456 yes int type , Will automatically convert the conversion function to varchar. Put a single quotation mark
jion in: Conditions id One is int One is varchar It's going to fail
There is a situation Whether or not to use the index is not necessarily related to the version ,
where a>3
a It's a secondary index
5.6 There were two before
There is a threshold , Less than 20 Ten thousand or less than the average data in the table , Select clustered index
Greater than the secondary index of the selected party
5.6 introduce
3 Time io find id, stay innodb engine Put it in the cache and sort
边栏推荐
- 测试用例如何编写?
- Jenkins pipeline syntax
- ADB command collection, let's learn together
- Leetcode689 wrong greedy thinking
- [computer use] how to change a computer disk into a mobile disk?
- List < string > sort
- Chapter 3 registers (memory access)
- There must be something you want to know about software testing experience sharing
- L1-019 who goes first
- Solution of hmaster process flash back after starting
猜你喜欢

How to write test cases?
Automated test learning path, come and learn
測試用例和bug描述規範參考

机器学习笔记 - 循环神经网络备忘清单

Node sample background setup
Test case and bug description specification reference
What are the design principles of an automated test framework? I'll sum it up for you. Come and see
Cas d'essai et spécification de description des bogues référence

Unittest test framework
Selection of interview questions for software testing
随机推荐
Financial test interview questions to help you get the offer
最少换乘次数
Sword finger offer II 016 Longest substring without repeating characters - sliding window
Countdownlatch example
Technology cloud report: how will the industrial Internet rebuild the security boundary in 2022?
ABC253F Operations on a Matrix
Detailed explanation of iSCSI (V) -- actual operation of iSCSI client configuration
MySQL - Import / export operation
L1-019 who goes first
Codecraft-22 and codeforces round 795 (Div. 2)
Notes on data mining in Tsinghua University (1)
Mycat的使用
Flink传入自定义的参数或配置文件
Distributed transaction solution 1: TCC (compensation transaction)
There must be something you want to know about software testing experience sharing
Xshell startup encountered "unable to continue code execution because mfc110.dll cannot be found"
Introduction Fibonacci series
Introduction to Chang'an chain node certificate, role and authority management
Counting haybales (difference + discretization)
On absolute value function in C language