当前位置:网站首页>Mysql database engine analysis
Mysql database engine analysis
2022-07-20 06:43:00 【The fifth brother of the Wang family】
mysql Analysis of the characteristics of database engine :
1、InnoDB Storage engine
InnoDB Is the preferred engine for transactional databases , Support transaction security (ACID), Other storage engines are non transactional security tables , Support row locking and foreign keys ,MySQL5.5 In the future, it will be used by default InnoDB Storage engine .
InnoDB characteristic : Support transaction processing , Support foreign keys , Support for crash recovery and concurrency control . If you need to have a high requirement for transaction integrity ( Such as banks ), Concurrent control is required ( Like selling tickets ), Then choose InnoDB There are great advantages .
If frequent updates are needed 、 Delete the database of operation , You can also choose InnoDB, Because it supports transaction commit (commit) And rollback (rollback).
2、MyISAM Storage engine
MyISAM Has a higher insert 、 Query speed , Transaction is not supported , Foreign key not supported
MyISAM be based on ISAM Storage engine , And expand it . It's in Web、 One of the most commonly used storage engines in data warehousing and other application environments .MyISAM Has a higher insert 、 Query speed , Transaction is not supported , Foreign key not supported .
MyISAM characteristic : Insert data fast , Low space and memory usage . If the table is mainly used to insert new records and read records , So choose MyISAM It can achieve high processing efficiency . If the integrity of the application 、 Concurrency requirements are relatively low , You can also use
3、MEMORY Storage engine
MEMORY The storage engine stores the data in the table in memory , Provides quick access to queries and references to other table data .
MEMORY characteristic : All the data is in memory , Data processing speed is fast , But the security is not high . If you need fast reading and writing speed , Low security requirements for data , You can choose MEMOEY.
It has requirements for the size of the table , Can't build too large a table . therefore , This kind of database is only used in relatively small database tables .
=================== Gorgeous split line =================
If you don't understand , The following sentence is clear to you :
1、InnoDB Storage engine
The requirements for transaction integrity are relatively high
2、MyISAM Storage engine
MyISAM Has a higher insert 、 Query speed , Transaction is not supported , Foreign key not supported
3、MEMORY Storage engine
For fast reading , Data in memory , The watch can't be too big
边栏推荐
- 基于yarn1.x的monorepo实践分享
- [leetcode daily question] - 108 Convert an ordered array into a binary search tree
- ovirt: api
- WTO officially announced that sun Yuchen's MC12 speech covered major topics such as e-commerce
- PIPNet:面向自然场景的人脸关键点检测《Pixel-in-Pixel Net: Towards Efficient Facial Landmark Detection in the Wild》
- 【活动早知道】LiveVideoStack近期活动一览
- WTO MC12达成“1+4”成果 推动全球疫后经济复苏
- QQ group cannot download video and picture solutions
- 【翻译】宣布Vitess 13
- autojs云控源码+展示
猜你喜欢
亲测五种高效实用的脱单方法,赶紧收藏帮你快速找到优质对象!
El select and El tree tree structure drop-down single selection and multi selection
WTO官方公布孙宇晨MC12发言全文 涉电子商务等重大议题
Introduce you to C language custom types - structure, enumeration, union
VLAN aggregation
商业中心vr全景拍摄制作帮助商家有效吸引人流
【翻译】介绍一下Opta。Rails上的Terraform
高数 | 【多元函数微分学】概念篇 —— 连续、可偏导及可微之间的关系
Arthas下载与启动
Ine penetration testing basics black box penetration testing process
随机推荐
商业中心vr全景拍摄制作帮助商家有效吸引人流
Dynamic memory management - C language
INE Penetration Testing Basics 黑盒渗透测试过程
迭代器和生成器(es6)
注解开发
autojs云控源码+展示
Arthas下载与启动
dfs 牛客 迷宫问题
注解开发管理第三方bean
特殊的二叉树及练习题
键入网址到网页显示,期间发生了什么?
重磅!中国开源地图正式启动,诚挚邀请所有开源社区加入共创~
codeforces每日5题(均1500)-第十九天
OGC WebGIS 常用服务标准(WMS/WMTS/TMS/WFS)速查
DeFi 2.0的LaaS协议Elephant,重振DeFi赛道发展的关键
468-82(142、199、509、70、746)
中间抽头的变化对于ZVS振荡电路的影响
使用 My SQL Server 實現數據科學的 SQL 查詢教程
mysql数据库引擎分析
MySQL string operation (substr interception, locate instr position child parent string judgment)