§ Changes in GreatSQL 8.0.32-25 (2023-12-28)

§ Version Information

§ Feature Enhancements

GreatSQL 8.0.32-25 introduces, for the first time, a high-performance in-memory query acceleration AP engine that can improve GreatSQL's data analysis performance by several orders of magnitude; greatly increases Oracle compatibility features, supporting more data types, SQL syntax, functions, and stored procedures; supports asynchronous deletion of large InnoDB tables; supports binding dynamic VIP to MGR read-only nodes and actively disconnecting current connections during primary switchover, shortening the application-side unavailability window.

§ High Availability

  • Supports binding VIP to read-only nodes in MGR Single Primary mode. Business traffic can access read-only nodes through the VIP, enabling dynamic VIP drift for read-only nodes. For more details, refer to: MGR Dynamic VIP Binding.
  • Supports actively closing current active connections when the primary node switches in MGR Single Primary mode, shortening the application-side unavailability window. For more details, refer to: Disconnect Application Connections After MGR Primary Switchover.
  • In cross-data-center disaster recovery scenarios, when multi-source replication and primary-primary bidirectional replication are enabled at the same time, data loop problems may occur. The new replicate_server_mode option is used to control applying only the binlog generated by the adjacent primary node in the multi-source replication pipeline, and not applying binlog generated by other non-adjacent nodes, avoiding data loop problems. Multi-channel primary-primary bidirectional replication can reduce source-replica configuration changes during data center disaster recovery drills and switchovers. This feature was contributed by the CMCC Smart Home DBA team (Xu Liang). For more details, refer to: GreatSQL High Availability Feature - Loop Prevention in Primary-Primary Bidirectional Replication.
  • For more information, see the documentation: High Availability.

§ High Performance

  • Supports a large-scale parallel, high-performance in-memory query acceleration AP engine that can improve GreatSQL's data analysis performance by several orders of magnitude. In a 32C64G test machine environment, the total time of 22 SQL statements in the TPC-H 100G test is less than 80 seconds. For more details, refer to: Rapid Engine.

  • Supports asynchronous deletion of large InnoDB tables. Deleting tables larger than 10G has almost no impact on system load, effectively improving the stability of InnoDB runtime performance. For more details, refer to: Asynchronous Deletion of Large InnoDB Tables.

  • Improved InnoDB PQ capabilities, supporting TPC-H Q21 query optimization.

  • For more information, see the documentation: High Performance.

§ High Compatibility

  • Starting from GreatSQL 8.0.32-25, there has been a huge improvement in Oracle compatibility. In addition to OCI, DBlink, and Packages, most commonly used SQL syntax, data types, functions, stored procedures, triggers, and views are supported. Data types such as CLOB, NUMBER, VARCHAR2, and PLS_INTEGER are supported; functions such as ADD_MONTHS, CHR, and DUMP are supported; SQL syntax such as ANY, ALL, Hierarchical Query, and FULL JOIN is supported; and compatibility for stored procedures, triggers, and views is supported.

  • For more information, see the documentation: High Compatibility.

§ Bug Fixes

  • Fixed the issue where the ARP table needs to be manually refreshed after binding VIP to MGR read/write nodes in a multi-subnet environment issue#I7F3PB (opens new window).
  • Fixed the issue of very poor performance when executing encrypted CLONE backup if the receiving instance sets innodb_flush_method = O_DIRECT.
  • Fixed the issue where TPC-H Q3 and Q5 query performance decreased after enabling the InnoDB PQ feature.
  • Fixed the issue where the Oracle-compatible functions SUBSTR and SUBSTRB round the input parameters automatically in a way inconsistent with Oracle's handling.
  • Fixed the issue where parallel LOAD DATA cannot correctly split complex text, and long transactions that are not committed cause continuous UNDO growth.
  • Fixed the issue where when ROWNUM is used in a FOR LOOP, in each loop iteration, ROWNUM in the query result set cannot be reset to start from 0 again.

§ Notes

§ GreatSQL VS MySQL

1. Major Features GreatSQL 8.0.32-25 MySQL 8.0.32
Open Source ✔️ ✔️
ACID Integrity ✔️ ✔️
MVCC Features ✔️ ✔️
Row Locks Supported ✔️ ✔️
Automatic Crash Recovery ✔️ ✔️
Table Partitioning ✔️ ✔️
Views ✔️ ✔️
Subqueries ✔️ ✔️
Triggers ✔️ ✔️
Stored Programs ✔️ ✔️
Foreign Keys ✔️ ✔️
Window Functions ✔️ ✔️
Common Table Expressions (CTE) ✔️ ✔️
Geographic Information (GIS) ✔️ ✔️
GTID-Based Replication ✔️ ✔️
Group Replication (MGR) ✔️ ✔️
MyRocks Engine ✔️
2. Performance Enhancement Extensions GreatSQL 8.0.32-25 MySQL 8.0.32
AP Engine ✔️ HeatWave (cloud only)
InnoDB Parallel Query ✔️ Primary key scans only
Parallel LOAD DATA ✔️ ❌
InnoDB Transaction ReadView Lock-Free Optimization ✔️ ❌
InnoDB Transaction Large Lock Splitting Optimization ✔️ ❌
InnoDB Resource Groups ✔️ ✔️
Custom InnoDB Page Size ✔️ ✔️
Contention-Aware Transaction Scheduling ✔️ ✔️
InnoDB Mutexes Splitting Optimization ✔️ ❌
MEMORY Engine Optimization ✔️ ❌
InnoDB Flushing Optimization ✔️ ❌
Parallel Doublewrite Buffer ✔️ ✔️
InnoDB Fast Index Creation Optimization ✔️ ❌
Single-Column Compression for VARCHAR/BLOB/JSON Types ✔️ ❌
Single-Column Compression Information in Data Dictionary ✔️ ❌
3. Developer-Oriented Improvements GreatSQL 8.0.32-25 MySQL 8.0.32
X API ✔️ ✔️
JSON ✔️ ✔️
NoSQL Socket-Level Interface ✔️ ✔️
InnoDB Full-Text Search Improvements ✔️ ❌
More Hash/Digest Functions ✔️ ❌
Oracle Compatibility - Data Types ✔️ ❌
Oracle Compatibility - Functions ✔️ ❌
Oracle Compatibility - SQL Syntax ✔️ ❌
Oracle Compatibility - Stored Programs ✔️ ❌
4. Basic Feature Enhancements GreatSQL 8.0.32-25 MySQL 8.0.32
MGR Enhancement - Zone Tags ✔️ ❌
MGR Enhancement - Arbitrator Nodes ✔️ ❌
MGR Enhancement - VIP Binding for Read/Write Nodes ✔️ ❌
MGR Enhancement - Fast Single-Primary Mode ✔️ ❌
MGR Enhancement - Smart Primary Election Mechanism ✔️ ❌
MGR Enhancement - New Flow Control Algorithm ✔️ ❌
Number of information_schema tables 95 65
Global performance and status metrics 853 434
Optimizer Histograms ✔️ ✔️
Per-Table Performance Metrics ✔️ ❌
Per-Index Performance Metrics ✔️ ❌
Per-User Performance Metrics ✔️ ❌
Per-Client Performance Metrics ✔️ ❌
Per-Thread Performance Metrics ✔️ ❌
Global Query Response Time Statistics ✔️ ❌
SHOW ENGINE INNODB STATUS Enhancement ✔️ ❌
Rollback Segment Information Enhancement ✔️ ❌
Temporary Table Information Enhancement ✔️ ❌
User Statistics Enhancement ✔️ ❌
Slow Query Log Enhancement ✔️ ❌
5. Security Enhancements GreatSQL 8.0.32-25 MySQL 8.0.32
National Cryptographic Algorithm Support ✔️ ❌
Backup Encryption ✔️ ❌
Audit Log into Tables ✔️ ❌
SQL Roles ✔️ ✔️
SHA-2 Password Hashing ✔️ ✔️
Password Rotation Policy ✔️ ✔️
PAM Authentication Plugin ✔️ Enterprise Edition only
Audit Plugin ✔️ Enterprise Edition only
Keyring Stored in File ✔️ ✔️
Keyring Stored in Hashicorp Vault ✔️ Enterprise Edition only
InnoDB Data Encryption ✔️ ✔️
InnoDB Log Encryption ✔️ ✔️
InnoDB Tablespace File Encryption ✔️ ✔️
Binary Log Encryption ✔️ ❌
Temporary File Encryption ✔️ ❌
Forced Encryption ✔️ ❌
6. Operations Convenience Enhancements GreatSQL 8.0.32-25 MySQL 8.0.32
DDL Atomicity ✔️ ✔️
Data Dictionary Stored in InnoDB Tables ✔️ ✔️
Fast DDL ✔️ ✔️
SET PERSIST ✔️ ✔️
Invisible Indexes ✔️ ✔️
Thread Pool ✔️ Enterprise Edition only
Backup Locks ✔️ ❌
SHOW GRANTS Extension ✔️ ❌
Table Corruption Action Extension ✔️ ❌
Kill Inactive Transactions ✔️ ❌
START TRANSACTION WITH CONSISTENT SNAPSHOT Extension ✔️ ❌

In addition, GreatSQL 8.0.32-25 is based on Percona Server for MySQL 8.0.32, which has made a large number of improvements and enhancements and added many new features on top of MySQL 8.0.32. For details, please see: Percona Server for MySQL feature comparison (opens new window). These include features only available in MySQL Enterprise Edition, such as thread pool, auditing, and data masking, as well as numerous improvements and enhancements such as performance_schema improvements, information_schema improvements, performance and scalability improvements, user statistics enhancements, PROCESSLIST enhancements, and Slow Query Log enhancements. They are not listed here one by one.

§ GreatSQL Release Notes

§ GreatSQL 8.0

§ GreatSQL 5.7

Scan the QR code to follow our WeChat Official Account

greatsql-wx