Tag

Database Cleanup

1 views collected around this technical thread.

Practical DevOps Architecture
Practical DevOps Architecture
Apr 15, 2022 · Operations

Zabbix Monitoring Data Cleanup Bash Script

After prolonged Zabbix monitoring generates massive history tables, this guide provides a Bash script that stops Zabbix services, disables foreign key checks, truncates and optimizes various history tables in MySQL, backs up the database, and restarts the services.

Database CleanupZabbixmysql
0 likes · 3 min read
Zabbix Monitoring Data Cleanup Bash Script
Top Architect
Top Architect
Nov 11, 2021 · Databases

How to Remove Duplicate Data in MySQL Tables Efficiently

This article explains why duplicate rows appear in MySQL tables, demonstrates how to identify them with SELECT queries, and provides step‑by‑step SQL solutions—including safe deletion of all duplicates or retaining a single record per group—using subqueries and temporary tables for efficient cleanup.

Database CleanupDuplicate DataSQL
0 likes · 5 min read
How to Remove Duplicate Data in MySQL Tables Efficiently
Laravel Tech Community
Laravel Tech Community
Sep 10, 2021 · Databases

How to Remove Duplicate Records in MySQL Tables

This article explains why duplicate rows appeared in production MySQL tables, demonstrates how to identify them with SELECT queries, and provides two SQL solutions—one to delete all duplicates and another to keep a single record per duplicated key—while preserving data integrity.

Database CleanupDuplicate RemovalSQL
0 likes · 5 min read
How to Remove Duplicate Records in MySQL Tables
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 12, 2021 · Databases

Identifying and Cleaning Unused MySQL Tables Using ProxySQL Stats

This guide explains how to use ProxySQL's stats_mysql_query_digest to detect rarely accessed MySQL tables, export table lists, script the retrieval of last access times, and safely rename or drop unused tables after verification, helping reduce storage waste and metadata overhead.

Database CleanupProxySQLSQL
0 likes · 5 min read
Identifying and Cleaning Unused MySQL Tables Using ProxySQL Stats
Architecture Digest
Architecture Digest
Aug 29, 2020 · Databases

Cleaning Up Shared Redis Keys After a Business Line Decommission: Challenges and Solutions

This article describes how a team released resources after shutting down a business line, focusing on the difficulties of deleting Redis keys from a shared cluster, the step‑by‑step approach using code search, Python scripts, SCAN and DEBUG OBJECT commands, and the implementation of a custom key‑prefix serializer to prevent future issues.

Database CleanupPythonRedis
0 likes · 7 min read
Cleaning Up Shared Redis Keys After a Business Line Decommission: Challenges and Solutions