Tag

Data Cleanup

1 views collected around this technical thread.

Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 18, 2025 · Databases

Using pt-online-schema-change to Quickly Clean Data and Resolve Disk‑Space Alerts in MySQL

This article explains how to handle MySQL disk‑space alerts by using the pt‑online‑schema‑change (pt‑osc) tool to selectively retain needed rows, migrate data to a temporary table, and drop the original table, thereby achieving fast, low‑impact data cleanup.

Data CleanupDatabase OperationsMySQL
0 likes · 10 min read
Using pt-online-schema-change to Quickly Clean Data and Resolve Disk‑Space Alerts in MySQL
Java Tech Enthusiast
Java Tech Enthusiast
Oct 3, 2024 · Databases

MySQL Large Table Data Deletion Optimization Strategy

To efficiently purge old user‑operation logs while retaining the most recent three months and preserving type‑c entries, the article recommends abandoning offset pagination and MyBatis PageHelper, using primary‑key‑based pagination with a tracked startId, in‑memory filtering, intelligent startId recalculation, and optional sleep intervals to avoid database overload.

Data CleanupDatabase OptimizationMySQL
0 likes · 6 min read
MySQL Large Table Data Deletion Optimization Strategy
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 28, 2021 · Databases

Using pt-archiver for Batch Deletion of Large MySQL Tables

The article explains why massive MySQL tables need periodic cleanup, compares risky drop/truncate approaches, and provides a step‑by‑step guide to safely delete historical data in batches using pt‑archiver with proper parameters, session handling, and post‑deletion maintenance.

Data CleanupDatabase MaintenanceMySQL
0 likes · 7 min read
Using pt-archiver for Batch Deletion of Large MySQL Tables
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Nov 4, 2020 · Databases

How to Safely Drop Massive Data in TiDB Without Causing Write Stall

This article explains why dropping large amounts of data in a TiDB cluster can trigger compaction flow‑control, leading to write stalls and QPS jitter, and provides step‑by‑step troubleshooting, configuration tweaks, and best‑practice recommendations to resolve the issue.

CompactionData CleanupRegion Merge
0 likes · 20 min read
How to Safely Drop Massive Data in TiDB Without Causing Write Stall