ChemNet > Gold Suppliers > Thor Chemicals >

ACTICIDE LV 508

Kill A Query __hot__ | Mysql

Almost instantly, CPU usage dropped from 98% to 12%. The API errors stopped. Her phone went quiet.

She typed:

KILL <connection_id>; -- kills the entire connection, not just the query She never forgot that 2 AM wakeup. And from then on, every SELECT on large tables had to justify its indexes in the design review. “With great SELECT comes great responsibility — and the ability to KILL QUERY when responsibility fails.” mysql kill a query

Here’s a short story to illustrate killing a MySQL query in a real-world scenario. Almost instantly, CPU usage dropped from 98% to 12%