MySQL Forums
Forum List  »  Performance

Re: Hanging on copying to tmp table
Posted by: Brian Dalby
Date: April 27, 2012 07:02AM

Do you think it would work if I remove bug (and known_error) from the query?

I know it would make a lot more requests to the database, but if it could solve the problem it would be fine.


explain
SELECT SQL_CACHE
`node`.`is_folder`
, `node`.`id`
, `node`.`name`
, (COUNT(`parent`.`name`)-1) AS `level`
, `node`.`lft`
, `node`.`rgt`
, `node`.`status_id`
FROM `test_testcase` AS `node`, `test_testcase` AS `parent`
WHERE `node`.`lft` BETWEEN `parent`.`lft` AND `parent`.`rgt`
GROUP BY `node`.`lft`
ORDER BY `node`.`lft`;

1, 'SIMPLE', 'node', 'ALL', 'indx_testcase_lft', '', '', '', 9449, 'Using temporary; Using filesort'
1, 'SIMPLE', 'parent', 'ALL', 'indx_testcase_rgt,indx_testcase_lft', '', '', '', 9449, 'Range checked for each record (index map: 0x6)'

Options: ReplyQuote


Subject
Views
Written By
Posted
6399
April 23, 2012 06:55AM
3101
April 24, 2012 10:16AM
2472
April 24, 2012 02:44PM
2029
April 25, 2012 01:08PM
2175
April 25, 2012 08:43PM
2077
April 26, 2012 12:35AM
2366
April 26, 2012 02:17AM
Re: Hanging on copying to tmp table
1635
April 27, 2012 07:02AM
1879
April 28, 2012 01:37PM
1927
April 28, 2012 02:00PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.