Skip navigation links

MySQL Forums :: Performance :: Hanging on copying to tmp table


Advanced Search

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
Hanging on copying to tmp table 4286 Brian Dalby 04/23/2012 06:55AM
Re: Hanging on copying to tmp table 2310 Rick James 04/24/2012 10:16AM
Re: Hanging on copying to tmp table 1715 Brian Dalby 04/24/2012 02:44PM
Re: Hanging on copying to tmp table 1530 Brian Dalby 04/25/2012 01:08PM
Re: Hanging on copying to tmp table 1475 Rick James 04/25/2012 08:43PM
Re: Hanging on copying to tmp table 1464 Brian Dalby 04/26/2012 12:35AM
Re: Hanging on copying to tmp table 1693 Brian Dalby 04/26/2012 02:17AM
Re: Hanging on copying to tmp table 1449 Seweryn Ożóg 04/26/2012 03:28PM
Re: Hanging on copying to tmp table 1134 Brian Dalby 04/27/2012 07:02AM
Re: Hanging on copying to tmp table 1387 Rick James 04/28/2012 01:37PM
Re: Hanging on copying to tmp table 1380 Brian Dalby 04/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.