In MySQL 8, RENAME COLUMN is theoretically an instantaneous metadata-only operation with ALGORITHM=INPLACE. In practice, running it against a table handling four hundred writes a second during business…
When filtering by an equality condition on one column and a range condition on another, the order of columns in a composite index is the difference between an…
Before dropping what appeared to be an unused composite index on our transactions table, we followed the rule of making the index invisible first in our staging database.…
Following our migration to MySQL 8.4, an overnight reporting query that normally executed in twelve seconds suddenly spiked to ninety seconds, generating massive disk I/O alerts on our…
A partition where every remaining row was past its retention, eight months after the classification work. The partition scheme from 2023 aligns with the retention classes only at…
A reporting schema shaped for the questions, populated by a full rebuild, which removes every synchronisation bug. Denormalisation is safe here because the table is truncated and rebuilt…
Indexes on production tables serving queries that no user request ever makes. An index that serves only reporting is paying a write cost on every insert to make…