当前位置:网站首页>I also gave you the MySQL interview questions of Boda factory. If you need to come in and take your own
I also gave you the MySQL interview questions of Boda factory. If you need to come in and take your own
2022-07-01 04:38:00 【Program ape DD_】
I saw many friends asking for interview information before ,
Previously shared Spring Information , Have you all received it ,
If not , Click to get it for free !
What we share today is MySQL Relevant interview questions ,
Old rules ,
In order to make it convenient for everyone to save and read ,
I packed the complete information and answers into pdf
Pay attention to the official account below. SpringForAll Community ,
Reply key words 【MySQL】
You can get it for free complete pdf Information !
Part of the information content
Indexes
What is index ?
Index is a method used by storage engine to improve the access speed of database tables data structure .
Advantages and disadvantages of index ?
advantage :
Speed up data discovery
Add an index to the fields used for sorting or grouping , Sure Speed up grouping and sorting
Speed up the connection between tables
shortcoming :
Indexing requires Take up physical space
It will reduce the efficiency of adding, deleting and modifying tables , Because the table records are added, deleted and modified every time , Need to carry out Dynamic maintenance index , As a result, the addition, deletion and modification time becomes longer
The function of index ?
Data is stored on disk , When querying data , If there is no index , All data will be loaded into memory , Search in turn , More disk reads . With the index , You don't need to load all the data , because B+ The height of the tree is generally 2-4 layer , At most, you only need to read 2-4 Secondary disk , The query speed is greatly improved .
When you need to build an index ?
Fields that are often used for queries
Often used to index connected fields , Can speed up the connection
Fields that often need to be sorted are indexed , Because the index is in order , It can speed up Sorting Query
When not to build an index ?
where
Fields not used in conditions are not suitable for indexingThe table records less
It needs to be added, deleted and modified frequently
Participate in column calculation The column of is not suitable for indexing
The distinction is not high The field of is not suitable for indexing , Such as gender, etc
For your convenience
I have to All interview questions and answers It's sorted out
Pay attention to the official account below. , Reply key words "spring"
You can get it for free pdf Information
边栏推荐
- Dual Contrastive Learning: Text Classification via Label-Aware Data Augmentation 阅读笔记
- [ue4] event distribution mechanism of reflective event distributor and active call event mechanism
- LM小型可编程控制器软件(基于CoDeSys)笔记二十:plc通过驱动器控制步进电机
- 2022.2.7-2.13 AI industry weekly (issue 84): family responsibilities
- (12) Somersault cloud case (navigation bar highlights follow)
- Registration for R2 mobile pressure vessel filling test in 2022 and R2 mobile pressure vessel filling free test questions
- How to do the performance pressure test of "Health Code"
- 嵌入式系統開發筆記80:應用Qt Designer進行主界面設計
- JMeter learning notes 2 - brief introduction to graphical interface
- Introduction of Spock unit test framework and its practice in meituan optimization___ Chapter I
猜你喜欢
Internet winter, how to spend three months to make a comeback
Offline installation of Wireshark 2.6.10
OdeInt与GPU
TASK04|数理统计
[recommended algorithm] C interview question of a small factory
Execution failed for task ‘:app:processDebugResources‘. > A failure occurred while executing com. and
Knowledge supplement: basic usage of redis based on docker
2022危险化学品生产单位安全生产管理人员题库及答案
2022 tea master (intermediate) examination question bank and tea master (intermediate) examination questions and analysis
Hololens2 development environment building and deploying apps
随机推荐
Applications and features of VR online exhibition
What are permissions? What are roles? What are users?
Programs and processes, process management, foreground and background processes
[godot] unity's animator is different from Godot's animplayer
JD intelligent customer service Yanxi intention system construction and intention recognition technology introduction
Odeint et GPU
TASK04|數理統計
Offline installation of Wireshark 2.6.10
Knowledge supplement: basic usage of redis based on docker
Internet winter, how to spend three months to make a comeback
How to ensure the idempotency of the high concurrency interface?
2022-02-15 (399. Division evaluation)
[leetcode skimming] February summary (updating)
Jenkins automatically cleans up construction history
2022年G1工业锅炉司炉特种作业证考试题库及在线模拟考试
Simple implementation of slf4j
[Master / slave] router election in DD message
Execution failed for task ‘:app:processDebugResources‘. > A failure occurred while executing com. and
Possible problems and solutions of using scroll view to implement slider view
MySQL winter vacation self-study 2022 12 (5)