tencent cloud

TDSQL Boundless

Release Notes
Product Introduction
Overview
Scenarios
Product Architecture
Instance Types
Compatibility Notes
Kernel Features
Kernel Overview
Kernel Version Release Notes
Functionality Features
Performance Features
Billing
Billing Overview
Purchase Method
Pricing Details
Renewal
Overdue Payments
Refund
Getting Started
Creating an Instance
Connect to Instances
User Guide
Data Migration
Data Subscription
Instance Management
Configuration Change
Parameter Configuration
Account Management
Security Group
Backup and Restoration
Database Auditing
Tag Management
Use Cases
Technical Evolution and Usage Practices of Online DDL
Lock Mechanism Analysis and Troubleshooting Practices
Data Intelligent Scheduling and Related Practices for Performance Optimization
TDSQL Boundless Selection Guide and Practical Tutorial
Developer Guide
Developer Guide (MySQL Compatibility Mode)
Developer Guide (HBase Compatibility Mode)
Performance Tuning
Performance Tuning Overview
SQL Tuning
DDL Tuning
Performance White Paper
Performance Overview
TPC-C Test
Sysbench Test
API Documentation
History
Introduction
API Category
Making API Requests
Instance APIs
Security Group APIs
Task APIs
Backup APIs
Rollback APIs
Parameter APIs
Database APIs
Data Types
Error Codes
General Reference
System Architecture
SQL Reference
Database Parameter Description
TPC-H benchmark data model reference
Error Code Information
Security and Compliance
FAQs
Agreements
Service Level Agreement
Terms of Service
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

High Data Compression Ratio

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-03-06 18:50:06
Compared to the traditional MySQL InnoDB engine, TDSQL Boundless provides a compression ratio of up to 3.81. This article offers evaluation of disk capacity for users planning database migration or model selection.

Interpretation of Core Advantages: Why Can TDSQL Boundless Achieve Such a High Compression Ratio?

TDSQL Boundless adopts an LSM structure for data storage. Due to the append-only nature of LSM, it avoids intra-page fragmentation caused by frequent random writes from in-place updates in B+ trees. Simultaneously, the characteristic of background compaction in LSM eliminates the overhead of compressing data with every write, significantly reducing the performance impact of compression. Thus, compared to MySQL InnoDB, TDSQL Boundless achieves a data compression ratio of up to 3.81 while delivering comparable performance.
After examining the kernel, we present empirical data to quantitatively compare the storage footprint of TDSQL Boundless versus MySQL when handling identical datasets. This validates the high compression ratio's effectiveness across different data models (OLTP, OLAP), providing scientific guidance for capacity planning of disk during MySQL migration.

Test Overview

Test Environment

Option
Description
Cloud platform.
Tencent Cloud
Instance Specifications
16-Core CPU/32 GB of Memory/Enhanced SSD 300 GB

Comparison Database

Control group: MySQL 8.0 (using the InnoDB storage engine, default configuration)
Experimental group: TDSQL Boundless (with built-in high-efficiency engine for data compression)

Key Configuration

MySQL 8.0 default configuration of the InnoDB engine:
# MySQL InnoDB Configuration of Default Parameters
innodb_file_per_table=ON
innodb_page_size=16K
# Not enabled innodb_page_compression (representing the default configuration in most production environments)
innodb_page_compression=OFF

Test Data Set

Sysbench benchmark
benchmark test for TPC-C
TPC-H benchmark test

Testing Plan

Preparing Test Data

Sysbench benchmark: Initialize 32 tables with 10 million records per table.
TPC-C benchmark test: Initialize 1000 Warehouses.
TPC-H benchmark test: Initialize 8 tables (with indexes) and generate a 100GB test dataset.

Test Results and Data Analysis

Comparison of Storage Space Usage (Unit: GB)

Dataset
MySQL 8.0 (InnoDB)
TDSQL Boundless
Sysbench
72.6GB
36.77GB
TPC-C (1000 Warehouses)
77.8GB
43.5GB
TPC-H (100GB)
128.54GB
33.78GB
TPC-H (100GB) (with indexes)
166.42GB
45.29GB


Comparison of Data Compression Ratio (MySQL as Baseline 100%)

Dataset
MySQL 8.0 (InnoDB)
TDSQL Boundless
Sysbench
100%
~50.64%
TPC-C (1000 Warehouses)
100%
~55.91%
TPC-H (100GB)
100%
~26.27%
TPC-H (100GB) (with indexes)
100%
~27.21%


Migration Guide: Recommendations for Disk Capacity Planning

If you are migrating from MySQL to TDSQL Boundless and wish to evaluate the disk requirements of the target database, please follow these simple guidelines:

Step 1: Evaluate Disk Usage of MySQL

Log in to your MySQL instance and run the following command to view the total data size:
SELECT table_schema AS 'Database',
ROUND(SUM(data_length + index_length) / 1024 / 1024 / 1024, 2) AS 'Size(GB)'
FROM information_schema.TABLES
GROUP BY table_schema;

Step 2: Select Compression Ratio Based on Business Scenario

Source-Side MySQL Types of Service Data
Suggested Planning Coefficient
General OLTP services (orders, users, and so on)
Plan based on 50% of MySQL space.
Logs, monitoring, time-series data
Plan for 30% of MySQL space.
Data warehouse, reporting and analytics (AP)
Plan for 30% of MySQL space.

Step 3: Calculate Target Capacity of the Disk

Required disk space is approximately equal to the source MySQL capacity multiplied by the planning coefficient.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백