当前位置:网站首页>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 公鑰密碼學簡介
- Implementation of IM message delivery guarantee mechanism (II): ensure reliable delivery of offline messages
- Install the tp6.0 framework under windows, picture and text. Thinkphp6.0 installation tutorial
- skimage. morphology. medial_ axis
- 出色的学习能力,才是你唯一可持续的竞争优势
- How to rewrite a pseudo static URL created by zenpart
- app 应用安装到手机,不显示图标,引发的思考
- Practical cases | getting started and mastering tkinter+pyinstaller
- How to select the data transmission format of instant messaging application
- 创建 SSH 秘钥对 配置步骤
猜你喜欢
Technical problems to be faced in mobile terminal im development

Anaconda creates tensorflow environment

慢慢学JVM之缓存行和伪共享

【活动推荐】云原生、产业互联网、低代码、Web3、元宇宙……哪个是 2022 年架构热点?...

Replacing domestic image sources in openwrt for soft routing (take Alibaba cloud as an example)

【上采样方式-OpenCV插值】

Learn from small samples and run to the sea of stars

11 IO frame

How does P2P technology reduce the bandwidth of live video by 75%?
![C# 40. Byte[] to hexadecimal string](/img/3e/1b8b4e522b28eea4faca26b276a27b.png)
C# 40. Byte[] to hexadecimal string
随机推荐
Day3 data type and Operator jobs
Secondary bootloader about boot28 Precautions for ASM application, 28035
[upsampling method opencv interpolation]
cartographer_ local_ trajectory_ builder_ 2d
Transport layer TCP protocol and UDP protocol
Official image acceleration
Serious hazard warning! Log4j execution vulnerability is exposed!
瀚高数据库自定义操作符‘!~~‘
【Unity3D】碰撞体组件Collider
[unity3d] collider assembly
cartographer_ optimization_ problem_ 2d
Keras actual combat cifar10 in tensorflow
cartographer_backend_constraint
程序人生
Two step processing of string regular matching to get JSON list
Codeforces Round #800 (Div. 2)
CMakeLists. txt Template
小小面试题之GET和POST的区别
zencart新建的URL怎么重写伪静态
线程优先级