当前位置:网站首页>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
边栏推荐
- Reflow and repaint
- 中银证券开户安全吗?它和中国银行是什么关系呢?
- Shell基础概念
- Pytorch 安装超简单
- How to stimulate the vitality and driving force of cultural innovation
- Modify frontsortinglayer variable of spritemask
- 自己做了个相亲交友App,有兴趣的朋友可以看看
- TcaplusDB君 · 行业新闻汇编(三)
- [py] the failure of interface signature verification may be due to ensure_ ASCII problems
- Visio to high quality pdf
猜你喜欢
随机推荐
Management solution for whale conference smart scenic spot
【Debug】could not find ref wiht poc XXX解决
[MySQL] Table constraints
数字孪生:第三人称鼠标操作
How can small and medium-sized conferences be upgraded digitally?
鲸会务为智能化防疫工作赋能
Array rotate array
Latex error: file ‘xxx.sty‘ not found
What should I do if the mobile phone number cannot be updated
[tcapulusdb knowledge base] tcapulusdb viewing online operation
What are MySQL clustered indexes and nonclustered indexes?
torch_ geometric
Record (III)
Redis从入门到入土
CCF CSP 202109-2 非零段划分【100分】
[applet] the vant wearp radio radio radio component cannot trigger the bind:change event
Whether there are duplicate elements in the array
SQL exercise 4: string processing function
Modify frontsortinglayer variable of spritemask
[tcapulusdb knowledge base] Introduction to tcapulusdb push configuration



![[debug] could not find ref wiht POC XXX](/img/01/5fdbd3e9902458be754280464bd923.png)





