TokuDB 特性小结
TokuDB is an open source, high-performance storage engine for MySQL and MariaDB that dramatically improves scalability and operational efficiency. TokuDB is for Big Data applications with demanding requirements that are not met by your current storage engine, and reduces the deployment costs associated with scaling and optimization efforts.TokuDB是一个比较优秀的引擎,它不是用常规数据库所用的B+树存储数据,而是采用所谓的分形树来存储,这种特殊的数据结构就使得TokuDB的读写性能很强。
它采用分形数的数据结构做存储,最典型的几个特征就是插入速度极快,压缩效率高。TokuDB支持事务,MVCC等等一系列功能。
特点:
1、高压缩比,官方宣称可以达到1:12。
2、高insert性能,官方称至少比innodb高9倍。
3、可以在线添加索引和字段,速度快。
TokuDB在在线DDL操作的时候相对InnoDB有较大的优势。在索引方面,删除索引基本瞬间完成。在字段方案,添加/删除字段基本都是瞬间完成。

TokuDB会将添加字段的工作放在后台执行,而其快速的原因是将B-tree改为了Fractal-tree,其将随机IO替换为了顺序IO。领用Fractal-tree的特性,将HCAD命令广播到所有行上,而不是想InnoDB那样,需要open table并消耗很多的内存资源。
总结
优点:
1、高压缩比
2、高insert性能
3、增删字段秒级
缺点:
1、cpu usr态消耗高
2、响应时间变长