当前位置:网站首页>[database] index
[database] index
2022-07-25 21:28:00 【Master Hao】
Indexing speeds up queries . But the index should be maintained automatically when updating .
Index , It is equivalent to establishing a catalogue for books 

The essential difference between primary keys and unique keys is that primary keys are not accepted NULL value , Within the unique key constraint NULL value .
Generally, cluster indexes are automatically created in the primary key column . Data is stored in clustered index order , There can only be one . There can be multiple unique indexes . Often query columns , Index can be created .

By creating an index , In the process of query , Improve system performance
By creating a unique index , It can maintain the uniqueness of each row of data in the database table
When using grouping and sorting clauses for data retrieval , It can reduce the time of grouping and sorting in queries
Creating and maintaining indexes takes time , And the time increases with the amount of data
Indexes need to take up physical space , If you want to build a clustered index , More space is needed
It takes more time to add, delete and modify the data in the table , Because indexes have to be maintained dynamically
scene :
Often need to search on the column
On the column as the primary key
Often used on linked columns , These columns are mainly some foreign keys , Can speed up the connection
Often need to search by range on the column
Often need to sort on the column
Often used in where In the column above clause
边栏推荐
- QT | learn about QT creator by creating a simple project
- Too many passwords, don't know how to record? Why don't you write a password box applet yourself
- Detailed explanation of JVM memory model and structure (five model diagrams)
- How to choose sentinel vs. hystrix current limiting?
- How to copy all files in one folder to another folder
- 我也是醉了,Eureka 延迟注册还有这个坑!
- Add startup software items when the win system starts up
- [introduction to C language] zzulioj 1016-1020
- When MySQL imports data, it has been changed to CSV utf8 file and the file name is English. Why does it still fail to import
- 作为测试,如何理解线程同步异步
猜你喜欢
![[ManageEngine] value brought by Siem to enterprises](/img/1e/56d64d193e0428523418bef5e98866.png)
[ManageEngine] value brought by Siem to enterprises
![[online tutorial] iptables official tutorial -- learning notes 2](/img/7d/5f8328d1b4c8878f17c95d2658d2d6.jpg)
[online tutorial] iptables official tutorial -- learning notes 2

Canvas 填充渐变

Job interviews are always a second kill? After reading the seckill system notes secretly stored by JD T8, I have given my knees

ag 搜索工具参数详解

Pyqt5 use pyqtgraph to draw multiple y-value scatter plots

接口测试工具 restlet client

Huawei occupies half of the folding mobile phone market, proving its irreplaceable position in the high-end market

Cesium 多边形渐变色纹理(Canvas)

Vivo official website app full model UI adaptation scheme
随机推荐
【网络教程】IPtables官方教程--学习笔记2
SSH private key realizes login to remote target server
How to choose sentinel vs. hystrix current limiting?
In June 2021, the interview suffered a Waterloo. Is it so convoluted now
Reading the pointpillar code of openpcdet -- Part 3: Calculation of loss function
YUV422 to RGB (422sp to 420p)
Achieve accurate positioning based on Tencent map, and realize the attendance punch function of wechat applet
Kali modify the update source (it is not safe to update with this source)
Test cases and defect report templates
Canvas 填充渐变
Detailed explanation of Ag search tool parameters
Autojs learning - realize 3D perspective
Focus on data | Haitai Fangyuan directly hits the construction idea of data security governance in the securities industry
Naming rules for BSP of Quanzhi chip
牛客-TOP101-BM38
Fastjson deserialization vulnerability utilization analysis collection
Leetcode skimming -- guess the size of numbers II 375 medium
2022 latest examination questions and answers of eight members (standard staff) of Shanghai Architecture
Record the transfer of domain names from Alibaba cloud service providers to Huawei cloud
Autojs learning - Automatic screenshot of the king