当前位置:网站首页>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 .
边栏推荐
- 【上采样方式-OpenCV插值】
- Douban top250
- 两步处理字符串正则匹配得到JSON列表
- Official image acceleration
- FastAdmin Apache下设置伪静态
- 【Unity3D】人机交互Input
- Tp5.0框架 PDO连接mysql 报错:Too many connections 解决方法
- RESNET practice in tensorflow
- Install the tp6.0 framework under windows, picture and text. Thinkphp6.0 installation tutorial
- 定位设置水平,垂直居中(多种方法)
猜你喜欢

Ad tutorial series | 4 - creating an integration library file

redis探索之布隆过滤器

Baidu API map is not displayed in the middle, but in the upper left corner. What's the matter? Resolved!

Codeforces Round #802 (Div. 2)(A-D)

cartographer_local_trajectory_builder_2d

《财富自由之路》读书之一点体会

Introduction to alluxio
![C# 40. Byte[] to hexadecimal string](/img/3e/1b8b4e522b28eea4faca26b276a27b.png)
C# 40. Byte[] to hexadecimal string

国务院发文,完善身份认证、电子印章等应用,加强数字政府建设
![C# 40. byte[]与16进制string互转](/img/3e/1b8b4e522b28eea4faca26b276a27b.png)
C# 40. byte[]与16进制string互转
随机推荐
How to ensure the efficiency and real-time of pushing large-scale group messages in mobile IM?
Yunqi lab recommends experience scenarios this week, free cloud learning
Command line interface of alluxio
[quartz] read configuration from database to realize dynamic timing task
apktool 工具使用文档
cartographer_local_trajectory_builder_2d
LeetCode_二叉搜索树_简单_108.将有序数组转换为二叉搜索树
Mongodb image configuration method
Installation and deployment of alluxio
关于支付接口回调地址参数字段是“notify_url”,签名过后的特殊字符url编码以后再解码后出现错误(¬ , ¢, ¤, £)
The best Chinese open source class of vision transformer, ten hours of on-site coding to play with the popular model of Vit!
The first gift of the project, the flying oar contract!
Setting pseudo static under fastadmin Apache
Ad tutorial series | 4 - creating an integration library file
Thoughts triggered by the fact that app applications are installed on mobile phones and do not display icons
Douban top250
使用Jedis监听Redis Stream 实现消息队列功能
Excellent learning ability is your only sustainable competitive advantage
FastAdmin Apache下设置伪静态
Lstms in tensorflow_ Cell actual combat