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 4668 Brian Dalby 04/23/2012 06:55AM
Re: Hanging on copying to tmp table 2451 Rick James 04/24/2012 10:16AM
Re: Hanging on copying to tmp table 1842 Brian Dalby 04/24/2012 02:44PM
Re: Hanging on copying to tmp table 1623 Brian Dalby 04/25/2012 01:08PM
Re: Hanging on copying to tmp table 1610 Rick James 04/25/2012 08:43PM
Re: Hanging on copying to tmp table 1558 Brian Dalby 04/26/2012 12:35AM
Re: Hanging on copying to tmp table 1791 Brian Dalby 04/26/2012 02:17AM
Re: Hanging on copying to tmp table 1556 Seweryn Ożóg 04/26/2012 03:28PM
Re: Hanging on copying to tmp table 1210 Brian Dalby 04/27/2012 07:02AM
Re: Hanging on copying to tmp table 1484 Rick James 04/28/2012 01:37PM
Re: Hanging on copying to tmp table 1479 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.