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区别相关推荐

  1. MySQL Antelope和Barracuda的区别分析

    (转载)Antelope是innodb-base的文件格式,Barracude是innodb-plugin后引入的文件格式,同时Barracude也支持Antelope文件格式.两者区别在于: 文件格 ...

  2. mysql 5.5 barracuda_MySQL Antelope和Barracuda的区别分析

    Antelope是innodb-base的文件格式,Barracude是innodb-plugin后引入的文件格式,同时Barracude也支持Antelope文件格式.两者区别在于: 文件格式 支持 ...

  3. barracuda mysql_MySQL Antelope和Barracuda的区别分析

    Antelope是innodb-base的文件格式,Barracude是innodb-plugin后引入的文件格式,同时Barracude也支持Antelope文件格式.两者区别在于: 文件格式 支持 ...

  4. barracuda mysql,MySQL Antelope和Barracuda的区别分析_MySQL

    Antelope是innodb-base的文件格式,Barracude是innodb-plugin后引入的文件格式,同时Barracude也支持Antelope文件格式.两者区别在于: 文件格式 支持 ...

  5. mysql barracuda_MySQL Antelope和Barracuda的区别分析

    Antelope是innodb-base的文件格式,Barracude是innodb-plugin后引入的文件格式,同时Barracude也支持Antelope文件格式.两者区别在于: 文件格式 支持 ...

  6. Barracuda VS antelope

    version : 5.6.16-64.0-56-log Innodb 行存储: Innodb Plugin新引入Barracuda梭子鱼,包含Compressed和Dynamic两种行格式.而Com ...

  7. Barracuda文件格式备份注意事项

    5.5采用的是 Barracuda 文件格式,而5.1的是 Antelope innodb_file_format = Barracuda 老版本的热备份工具将会有问题,参考手册: xtrabacku ...

  8. 超详细图解!【MySQL进阶篇】MySQL架构原理

    MySQL体系架构 MySQL Server架构自顶向下大致可以分网络连接层.服务层.存储引擎层和系统文件层. 一.网络连接层 客户端连接器(Client Connectors):提供与MySQL服务 ...

  9. LNMP源码安装教程

    NGINX源码安装 # 切换阿里的源# yum -y install wget# sudo mv CentOS-Base.repo CentOS-Base.repo.bak# sudo wget -O ...

  10. Mysql的问题 Row size too large

    Mysql的问题 Row size too large (> 8126). 文章目录 Mysql的问题 Row size too large (> 8126). COMPACT Row F ...

最新文章

  1. 关于使用JAVA中JDK安装和在命令行中编译和运行程序的一些总结
  2. 清除 Xcode 项目缓存
  3. C语言中函数的参数列表为空和void的区别
  4. system.img格式打包学习
  5. Java NIO系列教程(五) 通道之间的数据传输
  6. 算法竞赛入门与进阶 (二)单调队列、单调栈
  7. 牛客14605 画三角
  8. 【程序员自救指南】中关村保洁大叔的一句话竟然帮我转正了
  9. java 将bean转化为map,将javabean转化为map对象
  10. 斥资2.5亿美元,英特尔也开始玩车了
  11. 树的非递归前中后序遍历
  12. 改善用户体验 Web前端优化策略总结.........
  13. 杭电2019多校第八场 Acesrc and Good Numbers——思维打表oeis
  14. 集成电路可测性设计DFT技术入门概论--MBIST技术报告
  15. python-Excel操作(xlrd读,xlwt写)
  16. WPS页眉不同页之间的修改
  17. win7开启wifi共享(热点)
  18. 【GPS】在线经纬度距离计算
  19. 微信投票软件制作代码
  20. 1080p显示器与2k的差别究竟有多大?该如何选择

热门文章

  1. 一张图理解kafka producer全貌
  2. PHP与MySQL动态网站开发:第4版
  3. 记忆模糊知识点5-11
  4. php基础:变量命名、传值、检测、类型转换、动态变量名
  5. varchar(10)与nvarchar(10)有什么区别
  6. 难道这个会是我的广角选择?
  7. [JNI] 开发基础 (8)c语言typedef
  8. 【thinking in java】学习笔记 三 初始化及权限控制
  9. [数据结构] 三十二叉堆
  10. [FJOI2014] 石子合并问题