How Splitting a MySQL Query Eliminated Temp‑Table I/O and Boosted Speed 100×
A MySQL slow‑query caused 100% I/O usage due to a massive temporary table, but by splitting the original SELECT into two statements—first fetching IDs then retrieving full rows—the execution time dropped from several seconds to under a second and I/O fell below 1%.
