签到成功

知道了

CNDBA社区CNDBA社区

Maridb 10.3的新特性

2018-05-11 20:46 3225 0 翻译 Maridb
作者: Expect-乐

1. Implemented Features

1.1. 语法/一般特性

· System-versioned tables (also known as AS OF) (MDEV-12894)

· Table Value Constructors (MDEV-12172) — GSoC 2017 project by Galina Shalygina

· Transform [NOT] IN predicate with long list of values INTO [NOT] IN subquery (MDEV-12176) — GSoC 2017 project by Galina Shalygina

· ROW TYPE OF now supports local SP variables (MDEV-14139)

· Aggregate stored functions (MDEV-7773) — GSoC 2016 project by Varun Gupta

http://www.cndba.cn/Expect-le/article/2784

· Support for LIMIT clause in GROUP_CONCAT() (MDEV-11297) http://www.cndba.cn/Expect-le/article/2784

· PERCENTILE_CONT, PERCENTILE_DISC, and MEDIAN window functions (MDEV-12985)

· FOR ... END FOR statement (MDEV-14415)

· XA RECOVER FORMAT='SQL' (MDEV-14593)

· Oracle compatible SUBSTR() function (MDEV-14012) — contribution by Jérôme Brauge

· INVISIBLE columns (MDEV-10177) — GSoC 2016 project by Sachin Setiya

· Various scalability improvements (MDEV-14529, MDEV-14505)

· Sequences can now be used with DEFAULT.

· Semi-sync plugin merged into the server (MDEV-13073) — contribution by Alibaba

· CREATE SEQUENCE (MDEV-10139)

· SHOW CREATE SEQUENCE 

· ALTER SEQUENCE 

· DROP SEQUENCE 

http://www.cndba.cn/Expect-le/article/2784

· NEXT VALUE FOR 

http://www.cndba.cn/Expect-le/article/2784

· PREVIOUS VALUE FOR 

· SETVAL() 

· INTERSECT and EXCEPT. These are both now reserved words and can no longer be used as an identifier without being quoted (MDEV-10141)

· ROW data type for stored routine variables (MDEV-10914, MDEV-12007, MDEV-12291)

· TYPE OF and ROW TYPE OF anchored data types for stored routine variables (MDEV-12461)

http://www.cndba.cn/Expect-le/article/2784

· Cursors with parameters (MDEV-12457)

· DDL Fast Fail - WAIT/NOWAIT (MDEV-11379, MDEV-11388)

· CHR() function (MDEV-12685)

· DELETE statement can delete from the table that is used in a subquery in the WHERE clause (MDEV-12137)

· Stored routine parameters can use ROW TYPE OF (MDEV-13581)

· The server now supports the PROXY protocol - see also the new proxy_protocol_networks system variable (MDEV-11159)

· Instant ADD COLUMN (MDEV-11369) — Tencent Game DBA Team, developed by vinchen. 

· UPDATE statements with the same source and target (MDEV-12874) — from Jerome Brauge. 

· ORDER BY and LIMIT in multi-table update (MDEV-13911)

· DATE_FORMAT(date, format, locale) - 3 argument form of DATE_FORMAT (MDEV-11553)

· The PL/SQL stored procedure dialect (enabled with sql_mode=ORACLE) now supports Oracle style packages. Support for the following statements has been added (MDEV-10591):

CREATE PACKAGE 

CREATE PACKAGE BODY 

DROP PACKAGE 

DROP PACKAGE BODY 

SHOW CREATE PACKAGE 

SHOW CREATE PACKAGE BODY 

· New sql_mode SIMULTANEOUS_ASSIGNMENT to make the SET part of the UPDATE statement evaluate all assignments simultaneously, not left-to-right.

· Correctness improvement - TRUNCATE honors transactional locks (MDEV-15061)

· Windows binaries now use high-precision timer when available (MDEV-15694). This makes much less probable for two queries to have the same CURRENT_TIMESTAMP(6) value, for example.

· Two new ALTER TABLE ... ALGORITHM options, INSTANT and NOCOPY, which allow operations that would require any data files to be modified, or that would require rebuilding the clustered index respectively, to be refused rather than potentially perform slowly (MDEV-13134)

1.2. 兼容性

· As a result of implementing Table Value Constructors, the VALUES function has been renamed to VALUE() (MDEV-12172)

· When running with sql_mode=ORACLE, the server now understands a subset of Oracle's PL/SQL language instead of the traditional MariaDB syntax for stored routines. See MDEV-10142, MDEV-10764 and SQL_MODE=ORACLE From MariaDB 10.3 to know the current status.

· New sql_mode, EMPTY_STRING_IS_NULL.

· INTERSECT and EXCEPT are both now reserved words and can no longer be used as an identifier without being quoted (MDEV-10141)

1.3. 压缩

· Storage-engine Independent Column Compression (MDEV-11371) — Tencent Game DBA Team, developed by willhan, also thanks to AliSQL. http://www.cndba.cn/Expect-le/article/2784

· On Linux, shrink the core dumps by omitting the InnoDB buffer pool (MDEV-10814)

1.4. 加密

· Temporary files created by merge sort and row log are encrypted if innodb_encrypt_log is set to 1, regardless of whether the table encrypted or not (MDEV-12634).

1.5. 优化/性能

· Condition pushdown through PARTITION BY clause of window functions (MDEV-10855)

· New optimizer switch setting, split_grouping_derived=on (see description)

· Numerous performance improvements for high-concurrency load

· Numerous scalability and performance improvements to global data structures, including MDEV-14756, MDEV-15019, MDEV-14482, MDEV-15059, MDEV-15104 

· Performance improvements to persistent data structures: MDEV-15090, MDEV-15132 

1.6. 存储引擎

1.6.1. InnoDB

· innodb_fast_shutdown now has a new mode, 3, which skips the rollback of connected transactions (MDEV-15832)

1.6.2. Spider

The Spider storage engine has been updated to 3.3.13. The partitioning storage engine has been updated to support all the new Spider features including:http://www.cndba.cn/Expect-le/article/2784

· Direct join support. This allows Spider to do JOINS and GROUP BYs internally.

· Direct update and delete.

· Direct aggregates.

· slave_transaction_retry_errors and slave-transaction-retry-interval allow more control over handling delays or conflicts when applying binary logs.

Most of the features were done as part of MDEV-7698.

1.6.3. OQGRAPH

· OQGraph now supports the "leaves" algorithm (MDEV-11271) — contribution by Heinz Wiesinger http://www.cndba.cn/Expect-le/article/2784

1.6.4. Partition Engine

· Numerous improvements for the partition engine (MDEV-7698) — contribution by Kentoku Shiba

Full text support.

Multi-range-read (Gives better performance when handling multiple ranges).

Support for condition pushdown.

HANDLER support

· Aggregate pushdown

· Bulk update/delete

1.7. Information Schema

· The Information Schema is optimized to use much less memory when selecting from INFORMATION_SCHEMA.TABLES or any other table with many VARCHAR or TEXT columns (MDEV-14275)

· The Information Schema Columns table now displays system versioning info in the EXTRA column - MDEV-15062 

1.8. Logging

· Disable logging of certain statements to the general log or the slow query log with the log_disabled_statements and log_slow_disabled_statements system variables.

· A new option to log_slow_filter, filsort_priority_queue.

1.9. Replication

· Per-engine mysql.gtid_slave_pos tables (MDEV-12179) — Implemented by Kristian Nielsen funded by Booking.com. http://www.cndba.cn/Expect-le/article/2784

1.10. Data Type API

10.3 continues refactoring for the data type API started in 10.2, which will make it possible to have user data type plugins. This work is still in progress (see MDEV-4912 for the current status and subtasks). Most of the task in this category do not change the server behavior. Some tasks do have a visible effect.http://www.cndba.cn/Expect-le/article/2784

1.11. Idle Transactions

Connections with idle transactions can be automatically killed after a specified time period by means of the idle_transaction_timeout, idle_readonly_transaction_timeout and idle_write_transaction_timeout system variables.

1.12. 系统变量

For a list of all new variables, see System Variables Added in MariaDB 10.3 and Status Variables Added in MariaDB 10.3.

· New system variable gtid_pos_auto_engines.

· session variables tracking is enabled by default (MDEV-11825)

· Remove deprecated variables innodb_file_format, innodb_file_format_check, innodb_file_format_max and innodb_large_prefix.

· version_source_revision - permits seeing which version of the source was used for the build (MDEV-12583).

· Added bind_address as a system variable (MDEV-12542).

· The max value of the max_prepared_stmt_count system variable has been increased from 1048576 to 4294967295

· The proxy_protocol_networks variable can now be modified without restarting the server (MDEV-15501)


官网:https://mariadb.com/kb/en/library/changes-improvements-in-mariadb-103/


Maridb 10.3新特性

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
Expect-乐

Expect-乐

关注

Without the continuous bitter cold, there can be no fragrant plum blossom

  • 336
    原创
  • 6
    翻译
  • 100
    转载
  • 41
    评论
  • 访问:1566965次
  • 积分:1957
  • 等级:核心会员
  • 排名:第4名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ