• 压缩表
OPTIMIZE TABLE
OPTIMIZE TABLE index_name [OPTION opt_name = opt_value [,...]]OPTIMIZE TABLE rt;优化后的磁盘块数量
OPTIMIZE TABLE rt OPTION cutoff=4;在前台运行
限制 I/O 影响
优化集群表
最后更新于
OPTIMIZE TABLE index_name [OPTION opt_name = opt_value [,...]]OPTIMIZE TABLE rt;OPTIMIZE TABLE rt OPTION cutoff=4;最后更新于
OPTIMIZE TABLE rt OPTION sync=1;ALTER CLUSTER mycluster DROP myindex;OPTIMIZE TABLE myindex;ALTER CLUSTER mycluster ADD myindex;