seniorMySQL

Diagnosing Ghost Records and Index Bloat

Updated May 4, 2026

Short answer

Space wastage in B-trees after massive deletes.

Deep explanation

Deletions only mark records as 'deleted'. If the space is not reused, the index 'bloats', requiring an OPTIMIZE TABLE to rebuild the tree.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More MySQL interview questions

View all →