tencent cloud

TencentDB for MySQL

Release Notes and Announcements
Release Notes
Product Announcements
User Tutorial
Product Introduction
Overview
Strengths
Use Cases
Database Architecture
Resource Isolation Policy
Economical Instance
Feature List
Database Instance
High Availability (Multi-AZ)
Regions and AZs
Service Regions and Service Providers
Kernel Features
Overview
Kernel Version Release Notes
Functionality Features
Performance Features
Security Features
Stability Features
TXRocks Engine
LibraDB Engine
Checking and Fixing Kernel Issues
Purchase Guide
Billing Overview
Selection Guide
Purchase Methods
Renewal
Payment Overdue
Refund
Pay-as-You-Go to Monthly Subscription
Instance Adjustment Fee
Backup Space Billing
Database Audit Billing Overview
Commercial Billing and Activity Description for Database Proxy
Description of the Database Proxy Billing Cycle
Viewing Bills
Getting Started
Overview
Creating MySQL Instance
Connecting to MySQL Instance
SQL Insight (Database Audit)
Overview
Viewing Audit Instance List
Enabling Audit Service
Viewing Audit Log
Log Shipping
Configuring Post-Event Alarms
Modifying Audit Rule
Modifying Audit Services
Disabling Audit Service
Audit Rule Template
SQL Audit Rule (Legacy)
Viewing Audit Task
Authorizing Sub-User to Use Database Audit
MySQL Cluster Edition
Introduction to TencentDB for MySQL Cluster Edition
Creating TencentDB for MySQL Cluster Edition Instance
Maintenance Management Instance
Viewing Instance Monitoring
Adjusting Instance Configuration
Operations for Other Features
Migrate or upgrade to TencentDB for MySQL Cluster Edition
Operation Guide
Use Limits
Operation Overview
Instance Management and Maintenance
Instance Upgrade
CPU Elastic Expansion
Read-Only/Disaster Recovery Instances
Database Proxy
Database Management Center (DMC)
Account Management
Parameter Configuration
Backup and Rollback
Data Migration
Network and Security
Monitoring and Alarms
Log Center
Read-Only Analysis Engine
Tag
Practical Tutorial
Using TencentDB for MySQL to Upgrade MySQL 5.7 to MySQL 8.0
Methods and Instructions for Upgrading from MySQL 5.6 to MySQL 5.7
Cybersecurity Classified Protection Practice for Database Audit of TencentDB for MySQL
Building All-Scenario High-Availability Architecture
Usage Specifications of TencentDB for MySQL
Configuring Automatic Application Reconnection
Impact of Modifying MySQL Source Instance Parameters
Limits on Automatic Conversion from MyISAM to InnoDB
Creating VPCs for TencentDB for MySQL
Enhancing Business Load Capacity with TencentDB for MySQL
Setting up 2-Region-3-DC Disaster Recovery Architecture
Improving TencentDB for MySQL Performance with Read/Write Separation
Migrating Data from InnoDB to RocksDB with DTS
Building LAMP Stack for Web Application
Building Drupal Website
Calling MySQL APIs in Python
The primary and secondary instances have inconsistent query data
White Paper
Performance White Paper
Security White Paper
Troubleshooting
Connections
Performance
Instance Data Sync Delay
Failure to Enable Case Insensitivity
Failure to Obtain slow_query_log_file via a Command
API Documentation
History
Introduction
API Category
Instance APIs
Making API Requests
Data Import APIs
Database Proxy APIs
Database Audit APIs
Security APIs
Task APIs
Backup APIs
Account APIs
Rollback APIs
Parameter APIs
Database APIs
Monitoring APIs
Log-related API
Data Types
Error Codes
FAQs
Related to Selection
Billing
Backup
Rollback
Connection and Login
Parameter Modifications
Instance Upgrade
Account Permissions
Performance and Memory
Ops
Data Migration
Features
Console Operations
Logs
Event
Database audit
Instance Switch Impact
API 2.0 to 3.0 Switch Guide
Service Agreement
Service Level Agreement
Terms of Service
Reference
Standards and Certifications
Contact Us
Glossary

Database Storage Engines

PDF
Focus Mode
Font Size
Last updated: 2026-02-05 10:16:19
Storage engine refers to the type of table, which determines how tables are stored in computers. This document describes the storage engines supported by TencentDB for MySQL.

InnoDB engine

The InnoDB engine is the most commonly used OLTP storage engine, employing Multi-Version Concurrency Control (MVCC) and row-level locking technology to deliver high-performance and reliable transaction processing. Compared to other MySQL storage engines, InnoDB supports superior data integrity, including foreign keys and rollback, and provides advanced query capabilities. Meanwhile, Tencent Cloud has implemented extensive kernel optimizations for InnoDB, enhancing its performance advantages, and it is widely applied in high-performance, high-concurrency use cases.
TencentDB for MySQL supports the InnoDB engine by default. In MySQL 5.6 and above versions, it no longer supports the MyISAM engine and Memory engine. The main reasons are as follows:
In the current MySQL version, TencentDB has implemented numerous kernel optimizations for InnoDB, already delivering significant performance advantages.
MyISAM uses a table-level locking mechanism, while InnoDB employs a row-level locking mechanism. Typically, InnoDB offers higher write efficiency.
Note:
Table-level locking is the coarsest granularity lock in MySQL, which means applying a lock to the entire table being operated on.
Row-level locking is the finest granularity lock in MySQL, which means applying a lock only to the row being operated on.
MyISAM has defects in protecting data integrity, and these defects can lead to corruption or even loss of database data. Moreover, many of these defects are design issues that cannot be fixed without breaking compatibility.
Migrating from MyISAM and Memory to InnoDB incurs low costs. For most applications, the migration only requires modifying the table creation code.
The development of MyISAM is transitioning to InnoDB. In the latest official MySQL 8.0 version, system tables have all adopted InnoDB.
Memory cannot guarantee data integrity. When an instance restarts or a primary-secondary switch occurs, all data in the table will be lost. We recommend that you migrate to InnoDB as soon as possible.
For more information, see Introduction to InnoDB and Introduction to MyISAM.

RocksDB Engine

RocksDB is a highly popular high-performance persistent KV (key-value) store. TXRocks is a transactional storage engine developed by Tencent's TXSQL team based on this. The TXRocks transactional storage engine benefits from the RocksDB LSM Tree storage structure, which reduces both the half-full pages and fragmentation waste in InnoDB, and enables compact format storage. Consequently, TXRocks maintains performance close to that of InnoDB while saving half or even more storage space compared to InnoDB, making it more suitable for businesses that demand high transaction read/write performance and have large data storage volumes.
More storage-efficient
Compared to the B+Tree index structure used by InnoDB, LSM Tree can save a significant proportion of storage space.
Lower write amplification
InnoDB uses an In-Place modification approach, where even modifying a single row may require writing an entire page to the disk, resulting in higher write amplification and random writes. In contrast, RocksDB adopts an Append-Only approach, which offers lower write amplification.

LibraDB Engine

The LibraDB engine, also known as the read-only analysis engine, is a new feature supported by TencentDB for MySQL. This feature is provided based on read-only instances. Its pluggable engine architecture enables flexible creation and termination, while providing users with the capability to process massive volumes of data and perform efficient, real-time complex analysis. The LibraDB engine primarily serves efficient analytical queries. It is an extended read-only analysis component that provides customers with real-time and high-performance complex SQL processing. Leveraging the columnar storage capability, vectorized parallel execution engine, and optimizer extended for distributed parallel execution of the LibraDB engine, customers can easily experience efficient analysis capabilities directly within the database. Additionally, LibraDB's columnar storage has been specifically optimized for high-QPS updates and ACID transactions, ensuring the real-time nature and consistency of query data.
Massively Parallel Processing MPP
Supports the MPP (Massively Parallel Processing) architecture, which enhances data processing performance by distributing workloads across multiple nodes.
Vectorized execution engine
In the LibraDB engine, a vectorized execution mode has been implemented. This mode processes in-memory columnar data in batches, invoking SIMD instructions once per batch, which reduces function call overhead and minimizes cache misses.
Supports columnar storage in high-speed update scenarios
The LibraDB engine ensures data consistency for changes in high-concurrency scenarios by leveraging optimizations and support at the storage layer. This prevents missed analysis opportunities caused by data latency from frequent updates in read-write instances.
Specified data loading capability
The LibraDB engine supports the capability to specify objects for loading. You can specify the LibraDB objects to be loaded either through the data load console settings or via command-line SQL.

Supported Editions and Architectures for Each Engine

Engine
Database Version
Architecture
InnoDB engine
MySQL 5.6,5.7,8.0
Single-node, Two-node, Three-node, Cluster edition
RocksDB Engine
MySQL 5.7,8.0
Two-node
LibraDB Engine
MySQL 5.7,8.0
Two-node, Three-node

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback