Skip to content

Diagnostic: Table Fragmentation and Disk Overhead #5271

@thisismyurl

Description

@thisismyurl

Deleted rows leave unused space (DATA_FREE) in InnoDB tables, causing fragmentation that slows queries and backups. Report DATA_FREE for all tables and flag excessive overhead.

Diagnostic Goal: Report table fragmentation statistics; flag >10% overhead or >100 MB DATA_FREE.
Treatment Mode: Automated OPTIMIZE TABLE on flagged tables.
Scope: information_schema.TABLES for site tables.
Acceptance: Calculates fragmentation correctly, treatment optimizes and reclaims space, no false positives.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiagnosticA diagnostic health checkPriority 02 (Medium)Important improvements supporting our core principlesStatus (Needs Triage)Needs initial review and categorization

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions