Tag

OPTIMIZE TABLE

1 views collected around this technical thread.

Laravel Tech Community
Laravel Tech Community
Sep 8, 2022 · Databases

Understanding MySQL Data Deletion Methods: DELETE, TRUNCATE, and DROP

The article explains the three primary MySQL data removal commands—DELETE, TRUNCATE, and DROP—detailing their execution speed, underlying mechanisms, impact on disk space for InnoDB and MyISAM engines, and best‑practice usage such as running OPTIMIZE TABLE after DELETE.

DELETEDROPInnoDB
0 likes · 7 min read
Understanding MySQL Data Deletion Methods: DELETE, TRUNCATE, and DROP
Top Architect
Top Architect
Dec 5, 2021 · Databases

Why MySQL Table Size Does Not Decrease After DELETE and How to Reduce It

This article explains why deleting rows in MySQL does not shrink the underlying table file, describes the InnoDB storage mechanics that cause this behavior, and provides practical solutions such as OPTIMIZE TABLE, ALTER TABLE, and Online DDL to reclaim space and avoid table‑locking issues.

ALTER TABLEDELETEDatabase
0 likes · 8 min read
Why MySQL Table Size Does Not Decrease After DELETE and How to Reduce It
Top Architect
Top Architect
Nov 17, 2021 · Databases

Why MySQL Table Size Does Not Decrease After DELETE and How to Reduce It

The article explains why MySQL’s DELETE command does not shrink the physical table file, describes InnoDB’s storage mechanics, and shows how to reclaim space using OPTIMIZE TABLE, ALTER TABLE, and Online DDL options.

ALTER TABLEDELETEDatabase Maintenance
0 likes · 7 min read
Why MySQL Table Size Does Not Decrease After DELETE and How to Reduce It
Top Architect
Top Architect
Jul 19, 2021 · Databases

Why MySQL DELETE Does Not Reduce Table File Size and How to Shrink It

The article explains why deleting rows in MySQL does not shrink the physical table file, describes the underlying InnoDB storage mechanisms, and provides practical methods such as OPTIMIZE TABLE, ALTER TABLE, and Online DDL to reclaim space and reorganize the table.

ALTER TABLEDELETEDatabase Maintenance
0 likes · 7 min read
Why MySQL DELETE Does Not Reduce Table File Size and How to Shrink It
Top Architect
Top Architect
Jun 9, 2021 · Databases

Why MySQL DELETE Does Not Reduce Table Size and How to Shrink It

The article explains why deleting rows in MySQL does not shrink the .ibd file because InnoDB only marks pages as reusable, and shows how to reclaim space using OPTIMIZE TABLE, ALTER TABLE, and Online DDL options.

ALTER TABLEDELETEDatabase Maintenance
0 likes · 7 min read
Why MySQL DELETE Does Not Reduce Table Size and How to Shrink It
Laravel Tech Community
Laravel Tech Community
May 13, 2021 · Databases

Why MySQL Table Size Doesn’t Shrink After DELETE and How to Reduce It

This article explains why deleting rows in MySQL does not decrease the physical table file size, describes the underlying InnoDB storage mechanisms, and shows how to reclaim space using OPTIMIZE TABLE, ALTER TABLE, and Online DDL options.

ALTER TABLEDELETEInnoDB
0 likes · 7 min read
Why MySQL Table Size Doesn’t Shrink After DELETE and How to Reduce It
Tencent Database Technology
Tencent Database Technology
Sep 7, 2020 · Databases

InnoDB Index Physical Space Usage Statistics and Page Scan Optimization

The article explains how CDB introduced an InnoDB index physical space usage statistic to help users decide when to run OPTIMIZE TABLE, describes the background of page fragmentation, compares incremental and full‑scan methods, and details a sequential I/O optimization that dramatically reduces measurement time.

Database PerformanceInnoDBOPTIMIZE TABLE
0 likes · 8 min read
InnoDB Index Physical Space Usage Statistics and Page Scan Optimization