§ Key Features

GreatSQL is an open source and free database that can meet financial-grade application scenarios on commodity hardware. It features High Availability, High Performance, High Compatibility, and High Security, and can serve as an ideal drop-in replacement for MySQL or Percona Server for MySQL.

§ Core Features

§ High Availability

GreatSQL has made numerous improvements and enhancements to MGR, supporting features such as zone id, arbitrator, dynamic read/write VIP, fast single-primary mode, and smart primary election. It also deeply optimizes several underlying MGR working mechanisms and algorithms, including the flow control algorithm, transaction certification queue cleanup algorithm, member join/leave mechanism, and recovery mechanism, further improving MGR's high availability guarantee and performance stability.

For more information, see the document: High Availability.

§ High Performance

Relative to MySQL and Percona Server for MySQL, GreatSQL delivers more stable and superior performance. It supports features such as Rapid Engine, lock-free transactions, parallel LOAD DATA, asynchronous drop of large tables, thread pool, non-blocking DDL, and NUMA affinity scheduling optimization. In TPC-C tests, performance is improved by more than 30% compared with MySQL, and in TPC-H tests, performance is tens or even hundreds of times that of MySQL.

  • Supports the Rapid Engine, a high-performance engine featuring massive parallelism, in-memory queries, and a high compression ratio, which can improve data analysis performance by several orders of magnitude.
  • Optimizes the InnoDB transaction system with various optimizations such as splitting big locks and lock-free design, improving overall OLTP performance by about 20%.
  • Supports parallel LOAD DATA, suitable for applications that frequently import large batches of data, improving performance by more than 20 times; it also provides optimizations for scenarios without an explicitly defined primary key.
  • Supports asynchronous drop of large tables, improving the runtime performance stability of the InnoDB engine.
  • Supports thread pool, reducing the cost of thread creation and destruction and ensuring stable performance without obvious degradation under high concurrency.
  • Supports non-blocking DDL, avoiding the problem of a large number of business requests being blocked because DDL operations must be completed as soon as possible.
  • Supports NUMA affinity optimization, binding front-end user threads and background threads to fixed NUMA nodes through NUMA affinity scheduling optimization to improve thread processing performance.

For more information, see the document: High Performance.

§ High Compatibility

GreatSQL is 100% compatible with MySQL and Percona Server for MySQL usage and supports most common Oracle usage, including data type compatibility, function compatibility, SQL syntax compatibility, stored routine compatibility, and many other compatibility extensions.

For more information, see the document: High Compatibility.

§ High Security

GreatSQL supports multiple security enhancement features such as logical backup encryption, Clone backup encryption, auditing, national cryptographic tablespace encryption, and sensitive data masking, further safeguarding business data security and making it more suitable for financial-grade application scenarios.

Through the multiple security enhancement features above, business data security is further safeguarded. For more information, see the document: High Security.

§ Others

§ GreatSQL VS MySQL

1. Main Features GreatSQL 8.0.32-27 MySQL 8.0.32
Open Source ✔️ ✔️
ACID Integrity ✔️ ✔️
MVCC ✔️ ✔️
Row Locking ✔️ ✔️
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 ✔️ ❌
LoongArch Support ✔️ ❌
2. Performance Extensions GreatSQL 8.0.32-27 MySQL 8.0.32
Rapid Engine ✔️ HeatWave only on cloud
Turbo Engine ✔️ ❌
NUMA Affinity Optimization ✔️ ❌
Non-blocking DDL ✔️ ❌
Faster Import for Tables without Primary Keys ✔️ ❌
InnoDB Parallel Query ✔️ Primary-key scan only
Parallel LOAD DATA ✔️ ❌
Lock-free InnoDB Transaction ReadView Optimization ✔️ ❌
InnoDB Transaction Large Lock Splitting Optimization ✔️ ❌
InnoDB Resource Groups ✔️ ✔️
Custom InnoDB Page Size ✔️ ✔️
Contention-Aware Transaction Scheduling ✔️ ✔️
InnoDB Mutex Splitting Optimization ✔️ ❌
MEMORY Engine Optimization ✔️ ❌
InnoDB Flushing Optimization ✔️ ❌
Parallel Doublewrite Buffer ✔️ ✔️
Fast InnoDB Index Creation Optimization ✔️ ❌
Single-column Compression for VARCHAR/BLOB/JSON ✔️ ❌
Column Compression Info in Data Dictionary ✔️ ❌
3. Developer Improvements GreatSQL 8.0.32-27 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 Routines ✔️ ❌
4. Basic Feature Improvements GreatSQL 8.0.32-27 MySQL 8.0.32
MGR - Zone Tags ✔️ ❌
MGR - Arbitrator Nodes ✔️ ❌
MGR - Dynamic VIP for Read/Write Nodes ✔️ ❌
MGR - Fast Single-Primary Mode ✔️ ❌
MGR - Smart Primary Election ✔️ ❌
MGR - New Flow Control Algorithm ✔️ ❌
MGR - Automatic Donor Selection ✔️ ❌
Clone Full & Incremental Backup ✔️ ❌
Clone Backup Compression ✔️ ❌
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 ✔️ ❌
Enhanced SHOW ENGINE INNODB STATUS ✔️ ❌
Enhanced Rollback Segment Information ✔️ ❌
Enhanced Temporary Table Information ✔️ ❌
Enhanced User Statistics ✔️ ❌
Enhanced Slow Log Information ✔️ ❌
5. Security Improvements GreatSQL 8.0.32-27 MySQL 8.0.32
National Cryptographic (GM) Support ✔️ ❌
Backup Encryption ✔️ ❌
Auditing ✔️ Enterprise only
Data Masking ✔️ ❌
Last Login Recording ✔️ ❌
SQL Roles ✔️ ✔️
SHA-2 Password Hashing ✔️ ✔️
Password Rotation Policy ✔️ ✔️
PAM Authentication Plugin ✔️ Enterprise only
Keyring Stored in Files ✔️ ✔️
Keyring Stored in Hashicorp Vault ✔️ Enterprise only
InnoDB Data Encryption ✔️ ✔️
InnoDB Log Encryption ✔️ ✔️
InnoDB Tablespace File Encryption ✔️ ✔️
Binary Log Encryption ✔️ ❌
Temporary File Encryption ✔️ ❌
Enforced Encryption ✔️ ❌
6. Operational Convenience Improvements GreatSQL 8.0.32-27 MySQL 8.0.32
Atomic DDL ✔️ ✔️
Data Dictionary Stored in InnoDB Tables ✔️ ✔️
Fast DDL ✔️ ✔️
SET PERSIST ✔️ ✔️
Invisible Indexes ✔️ ✔️
Thread Pool ✔️ Enterprise only
Backup Locks ✔️ ❌
Extended SHOW GRANTS ✔️ ❌
Extended Corrupted Table Actions ✔️ ❌
Kill Idle Transactions ✔️ ❌
Extended START TRANSACTION WITH CONSISTENT SNAPSHOT ✔️ ❌

GreatSQL 8.0.32-27 is based on Percona Server for MySQL 8.0.32 and makes a large number of improvements and new features on top of MySQL 8.0.32. For details, 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 performance_schema improvements, information_schema improvements, performance and scalability improvements, enhanced user statistics, enhanced PROCESSLIST, enhanced Slow Log, and many more; they are not all listed here one by one.

GreatSQL is also a GVP project on the Gitee platform, see: https://gitee.com/gvp/database-related (opens new window) in the Database-related category.

Scan to follow our official WeChat account

greatsql-wx