当前位置:网站首页>Storage engine analysis
Storage engine analysis
2022-06-10 22:38:00 【InfoQ】
Storage engine


-- Query table creation statement
show create table account;
-- Specify the storage engine when creating the table
CREATE TABLE Table name (
...
) ENGINE=INNODB;
-- View the storage engines supported by the current database
show engines;
InnoDB
- DML Operation follows ACID Model , SupportBusiness
- Row-level locks, Improve concurrent access performance
- SupportForeign keysconstraint , Ensure the integrity and correctness of data
- xxx.ibd: xxx Representative table name ,InnoDB Each table of the engine will correspond to such a tablespace file , The table structure that stores the table (frm、sdi)、 Data and index .
show variables like 'innodb_file_per_table';ibd2sdi xxx.ibd
MyISAM
- Unsupported transaction , Foreign key not supported
- Support table lock , Row locks are not supported
- Fast access
- xxx.sdi: Store table structure information
- xxx.MYD: Store the data
- xxx.MYI: Storage index
Memory
- Store in memory , Fast
- hash Indexes ( Default )
- xxx.sdi: Store table structure information
Storage engine features
Choice of storage engine
- InnoDB: If the application has higher requirements for the integrity of things , Data consistency is required under concurrent conditions , Data operations in addition to inserts and queries , It also contains a lot of updates 、 Delete operation , be InnoDB It 's a better choice
- MyISAM: If the application is based on read operation and insert operation , There are very few update and delete operations , And the integrity of the transaction 、 The requirement of concurrency is not high , Then this storage engine is very suitable .
- Memory: Keep all data in memory , Fast access , Usually used for temporary tables and caches .Memory The limitation of table size is the limitation of table size , Too large tables cannot be cached in memory , And can't guarantee the security of data
边栏推荐
- Visio 转为高质量PDF
- leetcode:333. 最大 BST 子树
- [tcapulusdb knowledge base] Introduction to tcapulusdb process startup
- Whale conference empowers intelligent epidemic prevention
- [tcapulusdb knowledge base] tcapulusdb refresh tbus channel introduction
- README
- Notes (IV) - multithreading
- Error parsing mapper XML
- 手机号码更新不出来,怎么处理
- Tcapulusdb Jun · industry news collection (VI)
猜你喜欢

中小型会议如何进行数字化升级?

【小程序】Vant滑动单元格添加点击其他位置自动关闭的功能

【TcaplusDB知识库】TcaplusDB事务管理介绍

TcaplusDB君 · 行业新闻汇编(六)

How to do well in the top-level design of informatization in the process of informatization upgrading of traditional enterprises

【TcaplusDB知识库】TcaplusDB TcapProxy扩缩容介绍

罗永浩:我要是负责人 能让苹果产品上去三个台阶不止

修改SpriteMask 的 frontSortingLayer 变量

Visio 转为高质量PDF

【TcaplusDB知识库】TcaplusDB TcapDB扩缩容介绍
随机推荐
很流行的状态管理库 MobX 是怎么回事?
Matlab - Implementation of evolutionary game theory
进阶高级程序员必知必会. 要不然,蠢材吗
Advanced advanced programmers must know and master Or else, stupid
dc_ Study and summary of labs--lab1
【TcaplusDB知识库】TcaplusDB巡检统计介绍
[tcapulusdb knowledge base] Introduction to the machine where the tcapulusdb viewing process is located
(11) Tableview
Diablo immortality database station address Diablo immortality database website
鲸会务会议分享:大会难办怎么办?
Tcapulusdb Jun · industry news collection (III)
How small and micro enterprises build micro official websites at low cost
[tcapulusdb knowledge base] tcapulusdb viewing online operation
存储引擎分析
中银证券开户安全吗?它和中国银行是什么关系呢?
Reflow and repaint
笔记(四)- 多线程
Whale conference empowers intelligent epidemic prevention
笔记(二)
Notes (V) - JVM