Feature differences between PolarDB for MySQL 8.0.1 and 8.0.2
PolarDB for MySQL 8.0.1 and 8.0.2 are both long-term stable (LTS) versions. 8.0.1 is compatible with MySQL Community Edition 8.0.13 and earlier; 8.0.2 is compatible with MySQL Community Edition 8.0.18 and earlier. This topic summarizes the feature differences to help you choose the version that fits your workload.
Choose a version
Choose 8.0.1 if your workload is already running on this version and you do not need the features exclusive to 8.0.2. 8.0.1 is a stable LTS release, fully compatible with MySQL Community Edition 8.0.13 and earlier.
Choose 8.0.2 if any of the following apply:
-
Your workload involves complex analytical queries that benefit from hash joins, elastic parallel query (ePQ), or optimizer enhancements such as predicate pushdown and subquery decorrelation.
-
You need advanced partitioning, including full-range subpartitioning, interval partitioning, mixed partitioning, or global secondary indexes (GSIs) on partitioned tables.
-
You want Warm Buffer Pool support to prevent performance degradation after a primary/secondary failover.
-
You need L2PC (level-2 page cache) for buffer pool extension.
-
You require partition-level cold data archiving to OSS, in addition to table-level archiving.
Features exclusive to 8.0.2
The following features are available in 8.0.2 but not in 8.0.1.
| Category | Feature | Description |
|---|---|---|
| Availability | Warm Buffer Pool | Prefetches the hot standby node's buffer pool before a primary/secondary switchover, preventing performance degradation on the new primary node after failover. |
| HTAP and complex queries | Hash Join | Supports hash joins and parallel hash joins. The optimizer selects hash joins based on cost and supports dynamic Bloom filter creation during join operations. |
| HTAP and complex queries | Elastic parallel query (ePQ) | Distributes a complex query across multiple compute nodes for parallel execution, breaking through the single-node parallelism bottleneck. Supports multi-node grouping for physical workload isolation and works with auto scaling to reduce costs. |
| HTAP and complex queries | Executor enhancement | Enhances Partial Result Cache and Bloom filter capabilities. |
| HTAP and complex queries | Optimizer: predicate pushdown | Pushes predicates in JOIN and HAVING clauses down to the data source to reduce the scan volume at each stage. |
| HTAP and complex queries | Optimizer: InList to semi-join | Converts InList operators to semi-join operators for more efficient execution. |
| HTAP and complex queries | Optimizer: subquery decorrelation | Decorrelates subqueries using window functions and the derived merge feature. Applies a cost-based optimizer (CBO) for query rewriting. |
| Partitioned tables | Enhanced partitioning capabilities | Supports full-range subpartitioning, interval partitioning, mixed partitioning, and list default hash partitioning — capabilities similar to Oracle. |
| Partitioned tables | Partial indexes for a partition | Allows different indexes on different partitions. |
| Partitioned tables | Global secondary indexes (GSIs) | Supports GSIs on partitioned tables, letting you use partitioned tables like ordinary tables and simplifying the use of partition keys. |
| Storage | L2PC | Extends the buffer pool using a level-2 page cache mechanism. |
| Storage | Cold data management — partition-level archiving | Supports both partition-level and table-level cold data archiving to OSS. 8.0.1 supports table-level archiving only. |
All supported features
The following table lists all features and their availability in each version.
| Category | Feature | Description | 8.0.1 | 8.0.2 |
|---|---|---|---|---|
| Data reliability and geo-disaster recovery | Multi-node deployment architecture | Data is distributed across two zones, each with three replicas (six replicas total). When the primary zone fails, the secondary zone takes over within a few minutes. During a forcible switchover, data generated within the last 1 second may be lost due to asynchronous replication between zones. | Supported | Supported |
| Architecture for multi-zone deployment | Deploys a database across three zones. Two zones store full data (data zones); when one data zone fails, the system switches to the other automatically without data loss. Failure of the log zone does not interrupt service. | Supported | Supported | |
| Global database network (GDN) | Connects multiple PolarDB clusters across regions. Data is synchronized across all clusters, enabling local reads globally. Cross-region replication latency is under 2 seconds. | Supported | Supported | |
| Failover with hot standby | Detects primary node failure and promotes the hot standby node immediately, restoring full performance without delay. See Warm Buffer Pool. | Supported | Supported | |
| Single-node deployment (Enterprise Edition or Standard Edition) | Deploys a cluster without read-only nodes or standby nodes. Suitable for personal learning, small websites, and small-to-medium enterprises. | Supported | Supported | |
| Scalability | One primary node and multiple read-only nodes | A cluster supports up to 16 nodes (1 primary + 15 read-only). Read and write requests are automatically routed to the appropriate node after connecting to a cluster endpoint. | Supported | Supported |
| Global consistency (high-performance mode) | Provides high-performance global read consistency across clusters with one primary and multiple read-only nodes. | Supported | Supported | |
| Multi-master Cluster (Database/Table) Edition | Each node handles write requests and scales dynamically within seconds. | Supported | Supported | |
| Serverless | Scales resources automatically based on workload, eliminating manual resource planning and operations. | Supported | Supported | |
| Availability and stability | Persistent connections | Keeps 95% of connections active during a primary/secondary switchover, configuration upgrade, or version upgrade. | Supported | Supported |
| Optimized read-only endpoints | Read-only endpoints support SQL-based SLB policies and the In-Memory Column Index (IMCI) feature, with persistent connections based on SQL workload. | Supported | Supported | |
| Transaction protection | During a primary/secondary switchover, configuration upgrade, or version upgrade, large transactions are not interrupted or forcibly rolled back. | Supported | Supported | |
| Warm Buffer Pool | Prefetches the hot standby node's buffer pool before a failover to prevent performance degradation on the new primary node. | Not supported | Supported | |
| Connection pools | Handles large numbers of concurrent short-lived PHP connections or persistent connections from Java-based microservice architectures. | Supported | Supported | |
| Hot row optimization | Identifies hot row update requests at the kernel level and batches updates to the same row within a specified interval for pipeline-based parallel processing. | Supported | Supported | |
| SQL Outline | Fixes the execution plan of SQL statements without modifying application-level SQL, preventing unstable or inefficient execution caused by statistics changes or optimizer updates. | Supported | Supported | |
| Concurrency control | Limits the number of concurrent executions of specific SQL statement types to prevent a single statement from overwhelming the database during traffic spikes. | Supported | Supported | |
| Fast Startup | Improves single-node startup speed. | Supported | Supported | |
| Various specifications for read-only nodes | Offers multiple node specifications for read-only nodes. | Supported | Supported | |
| Flashback queries | Retrieves data from a cluster, database, or table at a specific point in the past. | Supported | Supported | |
| High-throughput writes | CTS | Replaces the InnoDB active-transaction-based system with a Commit Timestamp Store (CTS)-based system, improving performance in mixed read/write scenarios and enabling consistent cross-node transactions for global consistency (high-performance mode) and massively parallel processing (MPP). | Supported | Supported |
| Global consistency (high-performance mode) | PolarTrans uses CTS and Remote Direct Memory Access (RDMA) to enforce strong consistency for all reads destined for read-only nodes. | Supported | Supported | |
| Optimized REDO I/O cache | Optimizes the critical I/O path based on cloud disk I/O to increase business throughput. | Supported | Supported | |
| Blink Tree | Minimizes B-tree index lock conflicts, improving the concurrency of structure modification operations (SMOs) and concurrent read/write performance. | Supported | Supported | |
| DDL | DDL performance optimization | Includes Instant ADD COLUMN, parallel DDL, optimized DDL I/O (prefetching, asynchronous I/O, multi-way merging and sorting), and faster TRUNCATE/DROP TABLE. | Supported | Supported |
| DDL stability optimization | Includes nonblocking DDL statements, DDL physical replication, async metadata lock replication, and prevention of long-running transactions on read-only nodes blocking DDL. | Supported | Supported | |
| DDL security optimization | Provides a recycle bin that temporarily holds deleted tables with a configurable retention period for data recovery. | Supported | Supported | |
| HTAP and complex queries | IMCI | Provides an In-Memory Column Index (IMCI) for OLAP workloads involving large datasets and complex queries. Enables integrated OLTP and OLAP processing in a single system. | Supported | Supported |
| Hash Join | Supports hash joins and parallel hash joins with dynamic Bloom filter creation to improve join performance. | Not supported | Supported | |
| Single-node parallel execution | Runs a query across multiple CPU cores using parallelization. Improves performance in more than 70% of TPC-H benchmark cases, with an average speed increase exceeding 10x. | Supported | Supported | |
| Elastic parallel query (ePQ) | Distributes complex queries across multiple compute nodes, eliminating the single-node parallelism bottleneck. Supports physical workload isolation and auto scaling. | Not supported | Supported | |
| Executor enhancement | Enhances Partial Result Cache and Bloom filter capabilities. | Not supported | Supported | |
| Optimizer enhancement — predicate pushdown | Pushes predicates in JOIN and HAVING clauses closer to the data source to reduce scan volume. | Not supported | Supported | |
| Eliminates unnecessary outer joins to simplify query execution. | Supported | Supported | ||
| Converts InList operators to semi-join operators for better performance. | Not supported | Supported | ||
| Decorrelates subqueries using window functions and derived merge, with CBO-driven query rewriting. | Not supported | Supported | ||
| Auto plan cache | Caches SQL execution plan metadata to reduce optimization overhead and improve query performance. | Supported | Supported | |
| SQL Trace/Detail | Tracks SQL execution information including execution plans, row scan counts, and execution time. Helps identify performance regressions caused by plan changes. | Supported | Supported | |
| Statistics enhancement | Monitors statistics freshness based on table update counts and recollects statistics as needed. Supports scheduled, on-demand, and cancellable recollection to minimize cluster impact. | Supported | Supported | |
| Fast query cache | Improves on the MySQL community query cache with high concurrency, dynamic memory reclamation, and adaptive caching. | Supported | Supported | |
| Supported | ||||
| Partitioned tables | Enhanced partitioning capabilities | Supports full-range subpartitioning, interval partitioning, mixed partitioning, and list default hash partitioning. | Not supported | Supported |
| Partial indexes for a partition | Allows different indexes on different partitions. | Not supported | Supported | |
| GSIs | Supports global secondary indexes (GSIs) on partitioned tables to simplify partition key usage. | Not supported | Supported | |
| Data compression, archiving, and encryption | Table-level compression | Compresses a specified table to reduce storage costs, with stronger compression than open-source MySQL. | Supported | Supported |
| L2PC | Extends the buffer pool with a level-2 page cache. | Not supported | Supported | |
| X-Engine Edition | Provides high-capacity storage for historical business data. X-Engine runs alongside InnoDB in the same database. | Supported | Supported | |
| Cold data management | Archives cold data to OSS to reduce storage costs. | Table-level archiving | Partition-level and table-level archiving | |
| Others | Minor version update | Provides version management and upgrade capabilities. | Supported | Supported |
| PolarDB for AI | One-stop data intelligence service using MLOps and built-in models to integrate data, features, and models. | Supported | Supported | |
| ARM-based hardware compatibility | Optimizes compatibility and performance for ARM-based hardware. | Supported | Supported | |
| User memory temporary tables on read-only nodes | Supports creating memory or MyISAM temporary tables on read-only nodes. | Supported | Supported | |
| TDE | Protects data at rest using transparent data encryption (TDE). | Supported | Supported | |
| Readable Protobuf | Configures a Protobuf schema for Blob fields stored in Protobuf format. Use PROTO_TO_JSON(blob_field) to read field data, and JSON_EXTRACT() to extract specific values for indexes or virtual columns. |
Supported | Supported | |
| Version compatibility | Databases on later versions support syntax added for earlier versions to enable binary log synchronization. | Supported | Supported |