Antelope 和Barracuda区别
Antelope和Barracuda均为innodb存储引擎的文件格式,Antelope为默认格式,非压缩;Barracuda为压缩格式;两者主要的不同在于对大数据量的存储时所占用的空间差异。
若要使用innodb的压缩功能,则必须使用innodb_file_format=Barracuda,不然没有作用。
接下来以一组实验来验证这两种不同存储格式带来的空间消耗差异。
Antelope
create table t_antelope(id int primary key auto_increment not null,descirption varchar(20)) engine=innodb;
delimiter $$
create procedure proc_antelope()
begin
declare i int;
set i = 1;
while i <= 1000000 do
insert into t_antelope values(i,'this is a test');
set i = i + 1;
end while;
end $$
Barracuda
create table t_barracuda(id int primary key auto_increment not null,descirption varchar(20)) engine=innodb row_format=compressed;
delimiter $$
create procedure proc_barracuda()
begin
declare i int;
set i = 1;
while i <= 1000000 do
insert into t_barracuda values(i,'this is a test');
set i = i + 1;
end while;
end $$
begin;call proc_antelope();commit;
begin;call proc_barracuda();commit;
实验结果:
antelope格式的数据文件大小为49M,数据插入时间18.42S,commit时间0.36S
barracuda格式的数据文件大小为23M,数据插入时间55.9S,commit时间4.63S
可见Barracuda格式可以节省很多空间,但数据插入处理过程的耗时也非常高
转载于:https://www.cnblogs.com/jandison/p/7059861.html
Antelope 和Barracuda区别相关推荐
- MySQL Antelope和Barracuda的区别分析
(转载)Antelope是innodb-base的文件格式,Barracude是innodb-plugin后引入的文件格式,同时Barracude也支持Antelope文件格式.两者区别在于: 文件格 ...
- mysql 5.5 barracuda_MySQL Antelope和Barracuda的区别分析
Antelope是innodb-base的文件格式,Barracude是innodb-plugin后引入的文件格式,同时Barracude也支持Antelope文件格式.两者区别在于: 文件格式 支持 ...
- barracuda mysql_MySQL Antelope和Barracuda的区别分析
Antelope是innodb-base的文件格式,Barracude是innodb-plugin后引入的文件格式,同时Barracude也支持Antelope文件格式.两者区别在于: 文件格式 支持 ...
- barracuda mysql,MySQL Antelope和Barracuda的区别分析_MySQL
Antelope是innodb-base的文件格式,Barracude是innodb-plugin后引入的文件格式,同时Barracude也支持Antelope文件格式.两者区别在于: 文件格式 支持 ...
- mysql barracuda_MySQL Antelope和Barracuda的区别分析
Antelope是innodb-base的文件格式,Barracude是innodb-plugin后引入的文件格式,同时Barracude也支持Antelope文件格式.两者区别在于: 文件格式 支持 ...
- Barracuda VS antelope
version : 5.6.16-64.0-56-log Innodb 行存储: Innodb Plugin新引入Barracuda梭子鱼,包含Compressed和Dynamic两种行格式.而Com ...
- Barracuda文件格式备份注意事项
5.5采用的是 Barracuda 文件格式,而5.1的是 Antelope innodb_file_format = Barracuda 老版本的热备份工具将会有问题,参考手册: xtrabacku ...
- 超详细图解!【MySQL进阶篇】MySQL架构原理
MySQL体系架构 MySQL Server架构自顶向下大致可以分网络连接层.服务层.存储引擎层和系统文件层. 一.网络连接层 客户端连接器(Client Connectors):提供与MySQL服务 ...
- LNMP源码安装教程
NGINX源码安装 # 切换阿里的源# yum -y install wget# sudo mv CentOS-Base.repo CentOS-Base.repo.bak# sudo wget -O ...
- Mysql的问题 Row size too large
Mysql的问题 Row size too large (> 8126). 文章目录 Mysql的问题 Row size too large (> 8126). COMPACT Row F ...
最新文章
- 关于使用JAVA中JDK安装和在命令行中编译和运行程序的一些总结
- 清除 Xcode 项目缓存
- C语言中函数的参数列表为空和void的区别
- system.img格式打包学习
- Java NIO系列教程(五) 通道之间的数据传输
- 算法竞赛入门与进阶 (二)单调队列、单调栈
- 牛客14605 画三角
- 【程序员自救指南】中关村保洁大叔的一句话竟然帮我转正了
- java 将bean转化为map,将javabean转化为map对象
- 斥资2.5亿美元,英特尔也开始玩车了
- 树的非递归前中后序遍历
- 改善用户体验 Web前端优化策略总结.........
- 杭电2019多校第八场 Acesrc and Good Numbers——思维打表oeis
- 集成电路可测性设计DFT技术入门概论--MBIST技术报告
- python-Excel操作(xlrd读,xlwt写)
- WPS页眉不同页之间的修改
- win7开启wifi共享(热点)
- 【GPS】在线经纬度距离计算
- 微信投票软件制作代码
- 1080p显示器与2k的差别究竟有多大?该如何选择