Hi,
I've just migrated a site between servers and now I'm getting a problem where the following query is just hanging.
The server that runs the query successfully runs 5.0.77 and the server that doesn't runs 5.1.48
The table has about 4200 records in it.
Does anyone have any suggestions for what could possibly cause this to hang?
Thanks in advance,
Wullie
The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
I've just migrated a site between servers and now I'm getting a problem where the following query is just hanging.
Code:
SELECT *
FROM jobs AS Main
WHERE id = (SELECT MAX(Sub.ID) FROM jobs AS Sub WHERE Sub.multiplejob = Main.multiplejob)
AND daysuntilflag <= -1
AND currentstatus != 'JobComplete'
AND currentstatus != 'JobCancelled'
AND jobnumber NOT LIKE '%cancelled%'
ORDER BY daysuntilflag, id asc
The server that runs the query successfully runs 5.0.77 and the server that doesn't runs 5.1.48
The table has about 4200 records in it.
Does anyone have any suggestions for what could possibly cause this to hang?
Thanks in advance,
Wullie
The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell