All Products
Search
Document Center

ApsaraDB RDS:[New Feature] DuckDB analytical read-only instances for ApsaraDB RDS for MySQL

Last Updated:Mar 28, 2026

Starting August 6, 2025, DuckDB-based analytical read-only instances are available for ApsaraDB RDS for MySQL. Powered by columnar storage and vectorized execution, these instances run complex analytical queries up to 100 times faster than the InnoDB engine.

How it works

A DuckDB-based analytical read-only instance runs a built-in DuckDB engine alongside your existing RDS for MySQL setup.

Data synchronization happens in two phases:

  • Historical data: When you create the instance, RDS automatically copies existing data from the primary instance and converts it to DuckDB's columnar format.

  • Incremental data: After the instance is created, changes from the primary instance are replicated in real time using MySQL native binary logging replication — entirely within RDS, with no external sync tools required.

Resource isolation: The analytical instance handles complex queries independently. Your primary instance and standard read-only instances continue handling transactions without interference.

Key capabilities

CapabilityWhat it means for you
Columnar storageColumn-oriented data layout reduces I/O for large-scale scans and aggregations
Vectorized executionProcesses data in batches rather than row by row, cutting CPU cycles for analytical workloads
Just-in-time (JIT) compilationCompiles query plans to native code at runtime, eliminating interpreter overhead for complex queries
Efficient memory managementOptimized memory usage for handling large analytical workloads
Parallel processingDistributes computation across CPU cores, reducing query latency as data volume grows
MySQL compatibility100% compatible with the MySQL protocol and data types; over 99.9% compatible with SQL syntax and Data Definition Language (DDL) — you can obtain results efficiently without changing your original search statements

Use cases

Aggregation and analysis

Analytical instances excel at aggregation-heavy workloads — log analysis, time-series aggregations, and reports across large-scale datasets. If your current queries are slow on InnoDB, the DuckDB engine can significantly reduce query time.

Multi-table JOIN queries

Services with wide schemas and complex JOIN paths — such as order analytics, user behavior analysis, or financial reporting — benefit from the columnar layout, which reads only the columns each query needs instead of full rows.

Replace or simplify your OLAP pipeline

If you currently maintain a separate OLAP database with a Data Transmission Service (DTS) data synchronization link, a DuckDB-based analytical read-only instance can eliminate that pipeline. Data flows within RDS at no extra synchronization cost.

Comparison

DuckDB-based analytical read-only instanceStandard read-only instanceOLAP database
Primary use caseComplex analytical queriesTransaction processingComplex analytical queries
Analytical query performanceHighLowHigh
Data synchronizationNative binary logging replicationNative binary logging replicationDTS data synchronization link
MySQL data type compatibilityFully compatibleFully compatibleIncompatible (requires field mapping)
SQL syntax compatibilityHighly compatible (over 99.9%)Fully compatibleIncompatible (requires SQL rewrite)
DDL compatibilityHighly compatibleFully compatiblePartially compatible
O&M costsLow (integrated instance)Low (integrated instance)High (requires extra maintenance for the database and synchronization link)

Billing

Billing for DuckDB-based analytical read-only instances follows the same model as standard read-only instances. The cost depends on the product series, instance type, storage type, and storage capacity. The actual price is shown on the purchase page.

What's next