当前位置:网站首页>Data storage: the difference between MySQL InnoDB and MyISAM
Data storage: the difference between MySQL InnoDB and MyISAM
2022-06-26 05:20:00 【Bronze God】
storage
InnoDB use frm Definition of file storage table 、ibd Store data and index .
Mysql8.0 Before :
MyISAM use 3 Files to store data ,frm Definition of file storage table 、MYD Files store data 、MYI File storage index .
Mysql8.0:
MySQL8 Started deleting the original frm file , And USES the Serialized Dictionary Information (SDI), yes MySQL8.0 A new product introduced after redesigning the data dictionary , And has been used uniformly InnoDB The storage engine stores the metadata information of the table .SDI Information source records are kept in ibd In file .SDI With JSON Format store
MyISAM use sdi Definition of storage table 、MYD Files store data 、MYI File storage index .
Functional aspects
1.InnoDB Support transactions ,MyISAM I won't support it . because MyISAM Unsupported transaction , More secure transaction operations MyISAM More emphasis on performance , Therefore, the query efficiency will be higher than InnoDB Higher .
2.InnoDB Support foreign keys ,MyISAM I won't support it . A containing foreign keys InnoDB turn MyISAM Will fail .
3.InnoDB It's a clustered index ,MyISAM It's a non clustered index .InnoDB The primary key index of is a clustered index ,InnoDB You must have a primary key .
If the primary key is not explicitly defined when the table is created , be InnoDB The storage engine selects or creates a primary key as follows :
1 First, determine whether there is a non empty unique index in the table , If there is , Then the column is the primary key
2 If the above conditions are not met ,InnoDB The storage engine automatically creates a 6 Byte size primary key ( The user is not visible )
4.InnoDB Do not save the specific rows of the table , perform select count(*) from table You need a full scan .MyISAM The number of records in the entire table is saved in one variable , When querying, you only need to get it out , fast .
5.InnoDB Table level lock and row level lock are supported , and MyISAM Only table level locks are supported .
边栏推荐
- 6.1 - 6.2 公钥密码学简介
- LSTM in tensorflow_ Layers actual combat
- Codeforces Round #800 (Div. 2)
- Procedural life
- Red team scoring method statistics
- AD教程系列 | 4 - 创建集成库文件
- 国务院发文,完善身份认证、电子印章等应用,加强数字政府建设
- Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
- 关于支付接口回调地址参数字段是“notify_url”,签名过后的特殊字符url编码以后再解码后出现错误(¬ , ¢, ¤, £)
- Computer Vision Tools Chain
猜你喜欢

Experience of reading the road to wealth and freedom

PHP二维/多维数组按照指定的键值来进行升序和降序

cartographer_ local_ trajectory_ builder_ 2d
![C# 39. string类型和byte[]类型相互转换(实测)](/img/33/046aef4e0c1d7c0c0d60c28e707546.png)
C# 39. string类型和byte[]类型相互转换(实测)

Apktool tool usage document

cartographer_ backend_ constraint

How to select the data transmission format of instant messaging application

PHP 2D / multidimensional arrays are sorted in ascending and descending order according to the specified key values

Create SSH key pair configuration steps

SOFA Weekly | 开源人—于雨、本周 QA、本周 Contributor
随机推荐
C# 39. Conversion between string type and byte[] type (actual measurement)
[latex] error type summary (hold the change)
6.1 - 6.2 公钥密码学简介
cartographer_ optimization_ problem_ 2d
Anaconda creates tensorflow environment
Day3 data type and Operator jobs
skimage.morphology.medial_axis
First day of deep learning and tensorflow learning
Pytorch forecast house price
【红队】要想加入红队,需要做好哪些准备?
CMakeLists. txt Template
redis探索之布隆过滤器
How to make your big file upload stable and fast?
cartographer_ local_ trajectory_ builder_ 2d
Codeforces Round #802 (Div. 2)(A-D)
PHP之一句话木马
Baidu API map is not displayed in the middle, but in the upper left corner. What's the matter? Resolved!
两步处理字符串正则匹配得到JSON列表
【ARM】在NUC977上搭建基于boa的嵌入式web服务器
apktool 工具使用文档