Mariadb 10.1
2021-03-17 13:44:42 0 举报
AI智能生成
登录查看完整内容
Mariadb 10.1新功能预览
作者其他创作
大纲/内容
Mariadb 10.1
并行复制的乐观模式
Optimistic mode of in-order parallel replication有序并行复制的乐观模式尝试并行应用大多数的事务性DML,并处理(回滚、重试)任何发生的冲突。
增强的半同步复制
Enhanced semisync replication; Wait for at least one slave to acknowledge transaction before committing增强的半同步复制。直到至少一个从属服务器确认接收到该事务,该事务才变得可见。这意味着,如果主服务器完全丢失,其他连接看到的任何事务都将复制到某个地方,从而避免了潜在的幻像。Mariadb10.3.3之前以插件形式实现。
从库单独的触发器
Triggers can now be run on the slave for row-based events.在基于行的复制下,可以在从库上运行主库上不存在的触发器。
dump thread线程可并行
Dump Thread Enhancements from Google. Makes multiple slave setups faster by allowing concurrent reading of binary log.读取binlog事件时,dump thread不会彼此阻塞。dump thread不会被正在Write Binlog事件的用户会话阻止。用户会话不受正在读取binlog事件的dump thread阻止。dump thread和user session都可以获得更好的吞吐量,并且改进非常明显,尤其是在有许多从库服务器的情况下。
锁优化
排序优化
The ORDER BY optimizer takes multiple-equalities into account排序优化需要考虑等式传播。例如:select * from a join b on a.id=b.id order by a.id desc limit 10;\t select * from a join b on a.id=b.id order by b.id desc limit 10;
Make switching of index due to small limit cost-based: We have made the decision in make_join_select() of whether to switch to a new index in order to support \"ORDER BY ... LIMIT N\
超时语句自动终止
MAX_STATEMENT_TIME can be used to automatically abort long running queries. 终止超过一定时间(MAX_STATEMENT_TIME,单位为秒,默认0,即无限制)的sql语句(所有sql,不包括存储过程)。
UNION ALL优化
UNION ALL works without usage of a temporary table .没有order by 子句的union all 可以不发送到临时表,行可以直接发送到客户端。
IF EXISTS\\IF NOT EXISTS语法支持
ANALYZE语法支持
EXPLAIN FORMAT=JSON语法支持
EXPLAIN FORMAT=JSON is a re-implementation of similar feature in MySQL 5.6ANALYZE FORMAT=JSON produces detailed information about the statement execution以json形式输出相关解析。
循环相关(IF、WHILE等)可以直接运行
mysql.slow_log慢查询影响行数优化
InnoDB page容量扩大
Allow up to 64K pages in InnoDB (old limit was 16K)InnoDB内部page的容量限制由16K改为64K。支持多个blob等大数据类型的字段,减少分page存储。
InnoDB碎片整理优化
The Facebook/Kakao defragmentation patch (see Defragmenting InnoDB Tablespaces) which uses OPTIMIZE TABLE to defragment InnoDB tablespaces).对InnoDB表空间进行碎片整理,没有创建新表,也不需要将数据从旧表复制到新表。取而代之的是,此功能加载n页面(由innodb-defragment-n-pages确定)并尝试移动记录,以便页面将充满记录,然后在操作后释放完全为空的页面。
新表强制存储引擎
New server variable enforce_storage_engine新的系统参数enforce_storage_engine用于强制对新表使用特定的存储引擎。用于避免使用其他引擎不必要地创建表。
简单查询优化
Default size of query_alloc_block_size changed from 8192 to 16384 and query_prealloc_size from 8192 to 24576 to avoid the need for simple queries with one join to call my_malloc优化query_alloc_block_size、query_prealloc_size参数的默认值,避免简单查询调用my_malloc
单个查询参数修改
其他
数据加密
InnoDB页面压缩
InnoDB/XtraDB Page CompressionInnoDB页面压缩。备份工具Percona XtraBackup不支持压缩和加密,需改为Mariadbbackup。
密码验证插件
Password validation plugin API 新增密码验证插件,确保用户密码满足某些最低安全要求。
0 条评论
回复 删除
下一页