| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Daevid Vincent | Date: | June 3 2009 1:13am |
| Subject: | Why doesn't mySQL stop a query when the browser tab is closedL | ||
| View as plain text | |||
I just noticed a horrible thing. I have a query (report) that can take 15 minutes or more to generate with mySQL. We have > 500 Million rows. This used to be done in real time when we had less rows, but recently we got a big dump of data that shot it up. So, noticing via myTop the query taking so long, I closed my web page tab. The query did NOT go away! WTF? So mysqld continued to peg the CPU at 75% to 135% (yes, top shows that if you have quad cpus. *sigh*) Is there some way to force this to work sanely? Some php.ini or my.cnf file that has a setting to abort queries when the web page has gone away? Not sure which mailing list this belongs on so I'll post to both PHP and mySQL. Although it feels this is a PHP problem as it should know that the Apache thread went away and therefore close the mySQL connection and kill the query. Conversely, mysql should know that it's connection (via PHP) went away and should equally abort. So you're both wrong! :)
| Thread | ||
|---|---|---|
| • Why doesn't mySQL stop a query when the browser tab is closedL | Daevid Vincent | 3 Jun |
| • RE: Why doesn't mySQL stop a query when the browser tab is closedL | Jay Blanchard | 3 Jun |
| • RE: Why doesn't mySQL stop a query when the browser tab is closedL | Jerry Schwartz | 3 Jun |
| • Re: Why doesn't mySQL stop a query when the browser tab is closedL | Darryle Steplight | 3 Jun |
| • RE: Why doesn't mySQL stop a query when the browser tab is closedL | Daevid Vincent | 3 Jun |
| • RE: Why doesn't mySQL stop a query when the browser tab is closedL | Martin Gainty | 3 Jun |
| • Re: Why doesn't mySQL stop a query when the browser tab is closedL | Johnny Withers | 3 Jun |
| • Re: Why doesn't mySQL stop a query when the browser tab is closedL | Eric Bergen | 26 Jul |
| • Re: Why doesn't mySQL stop a query when the browser tab is closedL | Johnny Withers | 27 Jul |
| • RE: Why doesn't mySQL stop a query when the browser tab is closedL | Walton Hoops | 27 Jul |
