All Products
Search
Document Center

ApsaraDB RDS:DuckDB analytical primary instances

Last Updated:Mar 28, 2026

The DuckDB-based analytical primary instance runs complex analytical queries alongside transactional workloads in a single MySQL-compatible database. It embeds the DuckDB engine directly in the MySQL kernel, using columnar storage and vectorized execution to run analytical queries over 100x faster than the InnoDB engine—without a separate analytics cluster or ETL pipeline.

Use cases

  • Real-time reporting on live data: Run dashboards, aggregations, and ad hoc queries directly on live transactional data without affecting your OLTP workload.

  • Replacing a standalone analytics database: Eliminate a separate analytics system. The instance handles both workloads, and data written by transactions replicates to the columnar store via MySQL binlog, keeping analytical results current.

  • Cost-sensitive analytical workloads: Columnar storage compresses data by over 50% compared to InnoDB, reducing storage costs while maintaining query performance.

How it works

The DuckDB engine is deeply integrated within the MySQL kernel. Both the DuckDB columnar engine and the InnoDB engine run within the same MySQL kernel, so you connect and query the instance exactly as you would a standard RDS for MySQL instance.

Data replication: Transactions replicate to the columnar store via MySQL binlog. The instance supports transactions at the Snapshot Isolation level, ensuring data reliability and consistency.

For the full technical architecture, see Technical principles of DuckDB analytical instances.

Core advantages

  • 100x faster analytics: The DuckDB engine uses columnar storage, vectorized execution, parallel processing, and efficient memory management to accelerate complex queries. Standard MySQL queries run unaffected on InnoDB.

  • No ETL required: Transactions replicate to the columnar store via MySQL binlog. Analytical queries always read current data.

  • Over 50% storage reduction: Columnar storage achieves a high data compression ratio, reducing disk space compared to InnoDB.

  • MySQL ecosystem compatibility: Fully compatible with the MySQL protocol, syntax, and data types. Supports transactions at the Snapshot Isolation level and uses MySQL binlog for replication.

  • High availability with crash safety: Cluster Edition uses a one-primary, multiple-secondary architecture with automatic failover. All secondary nodes are readable. The crash-safe kernel preserves data durability in failure scenarios, and point-in-time restore is supported.

  • Simple architecture: Uses the same database kernel as RDS for MySQL with no external dependencies.

Deployment model

AttributeValue
Major engine versionMySQL 8.0
Billingpay-as-you-go and subscription
EditionCluster Edition only. One primary and multiple secondary nodes; all secondary nodes are readable. Add or remove nodes on demand.
Storage typePremium ESSD
Storage capacity20 GB to 128,000 GB

Features

Note

"Supported" means the feature is available. "Not supported" means it is unavailable.

CategoryFeatureDuckDB analytical cluster
Data migrationData migrationSupported (destination instance only)
Data synchronizationData synchronizationSupported (destination instance only)
Instance managementCreate an instanceSupported
Change instance configurationsSupported
Configure automatic storage expansionSupported
Configure automatic performance scalingNot supported
Change availability zoneNot supported
Perform an automatic or manual failoverSupported
View the data replication modeSupported (view-only)
Use parameter templatesNot supported
Disaster recovery instanceNot supported
Restart an instanceSupported
Automatic start/stopNot supported
Restart a specified nodeNot supported
Suspend an instanceNot supported
Configure a maintenance windowSupported
Release or unsubscribe from an instanceSupported
Instance Recycle BinSupported
Instance upgradeUpgrade the minor engine versionSupported
Upgrade the major engine versionThe current major version is the latest supported. You cannot upgrade to a later version.
Change the disk type from ESSD cloud disk to high-performance cloud diskNot supported
Upgrade from Basic Edition to Cluster EditionNot supported
Account managementCreate an accountSupported
Configure a custom password policySupported
Reset a passwordSupported
Modify account permissionsSupported
Delete an accountSupported
Reset a privileged accountSupported
Database managementManage databasesSupported
Delete a databaseSupported
Database connectionConnect to an instanceSupported
Configure an instance endpointSupported
View the instance endpoint and portSupported
Request a public endpointSupported
Monitoring and alertingView monitoring dataSupported
Set the frequency for legacy monitoringSupported
Configure alert rulesSupported
Network managementChange the VPC and vSwitchSupported
Read-only instances and read/write splittingCreate a read-only instanceNot supported
Change the read/write splitting endpoint typeNot supported
Security managementConfigure an IP whitelistSupported
Enable SSL encryption with a cloud certificateSupported
Configure transparent data encryption (TDE)Not supported
Enable and disable release protectionSupported
Cloud disk encryptionSupported
Manage sensitive dataNot supported
AuditingSQL Explorer and AuditSupported
Log managementSupported
Database backupFree quotaSupported
Back up dataSupported
Configure backup retention after instance releaseSupported
Sparse backupNot supported
Download a backupNot supported
Cross-region backupNot supported
Database recoveryRestore dataSupported
Restore a single database or tableNot supported
Cross-region restoreNot supported
Diagnostic optimizationAutonomous ServiceSupported
AliSQLAliSQLSupported
Tag managementCreate a tagSupported
Remove a tagSupported
Filter instances by tagSupported
Cluster node managementHigh availability (HA) with one primary and multiple readable standby instancesSupported
Unified management of read/write and read-only endpointsSupported
Automatic failover and manual switchover for cluster nodesSupported
Native replicationEnable native replicationNot supported

What's next