Tagged articles
7 articles
Page 1 of 1
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 17, 2024 · Databases

Why MySQL’s TDDL Optimizer Picks the Wrong Index and How to Fix It

This article investigates a slow‑SQL incident caused by the TDDL optimizer reordering a MySQL query, analyzes why the optimizer chose an inefficient index, demonstrates how to verify and force the correct index, and proposes better index and partition‑key designs for optimal performance.

Index OptimizationPartitioningTDDL
0 likes · 11 min read
Why MySQL’s TDDL Optimizer Picks the Wrong Index and How to Fix It
Alibaba Cloud Developer
Alibaba Cloud Developer
May 10, 2021 · Databases

How to Solve Cross-Database Transactions with Sharding: A Practical Guide

This article explains how to handle multi-table cross-database transactions by aligning sharding strategies for related tables, using a case study of shop_order_detail and shop_order_stat, and provides detailed formulas and TDDL configuration code to ensure consistent routing within the same database shard.

JavaTDDLcross-database transaction
0 likes · 11 min read
How to Solve Cross-Database Transactions with Sharding: A Practical Guide
Alibaba Cloud Developer
Alibaba Cloud Developer
Mar 21, 2021 · Databases

Mastering Database Sharding: Theory, Design, and TDDL Implementation

This article explains what database sharding (splitting databases and tables) is, why it improves performance and availability, how to choose between horizontal and vertical partitioning, design ID generation, handle distributed transactions, migrate data smoothly, and configure Alibaba's TDDL middleware with practical code examples.

ID generationTDDLVertical Partitioning
0 likes · 20 min read
Mastering Database Sharding: Theory, Design, and TDDL Implementation
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 23, 2020 · Databases

How TDDL Revolutionized Database Scaling at Alibaba: Lessons from 2007

This article recounts the 2007 challenges faced by Taobao's monolithic MySQL setup and explains how the TDDL middleware introduced SQL optimization, sharding, read‑write separation, caching, and dynamic scaling to transform the system into a distributed, high‑performance database solution.

Read-Write SeparationSQL OptimizationTDDL
0 likes · 16 min read
How TDDL Revolutionized Database Scaling at Alibaba: Lessons from 2007
Xianyu Technology
Xianyu Technology
Mar 6, 2019 · Databases

Seamless Migration of Xianyu Product Database Using TDDL and DTS

Xianyu migrated its tens‑billion‑row product database from a shared MySQL cluster to an isolated instance by refactoring with dual‑write, employing TDDL for sharding and sequence management, and using Alibaba Cloud DTS for full‑load, incremental sync, consistency verification, and a no‑data‑loss rollback, achieving seamless, user‑transparent migration and improved stability.

DTSData ConsistencyOnline Services
0 likes · 9 min read
Seamless Migration of Xianyu Product Database Using TDDL and DTS
21CTO
21CTO
Jan 28, 2019 · Databases

How Alibaba’s TDDL Evolved from Cobar to Power Billions of Daily Queries

This article traces the evolution of Alibaba’s distributed data layer—from the early Cobar system to the modern TDDL framework and DRDS service—explaining their architectures, limitations, sharding principles, transaction‑boundary strategies, heterogeneous index tables, and the Jingwei data‑replication platform that together enable seamless scaling and high‑performance SQL processing across thousands of databases.

AlibabaDRDSJingwei
0 likes · 29 min read
How Alibaba’s TDDL Evolved from Cobar to Power Billions of Daily Queries