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 4514 Brian Dalby 04/23/2012 06:55AM
Re: Hanging on copying to tmp table 2394 Rick James 04/24/2012 10:16AM
Re: Hanging on copying to tmp table 1799 Brian Dalby 04/24/2012 02:44PM
Re: Hanging on copying to tmp table 1584 Brian Dalby 04/25/2012 01:08PM
Re: Hanging on copying to tmp table 1537 Rick James 04/25/2012 08:43PM
Re: Hanging on copying to tmp table 1519 Brian Dalby 04/26/2012 12:35AM
Re: Hanging on copying to tmp table 1754 Brian Dalby 04/26/2012 02:17AM
Re: Hanging on copying to tmp table 1500 Seweryn Ożóg 04/26/2012 03:28PM
Re: Hanging on copying to tmp table 1175 Brian Dalby 04/27/2012 07:02AM
Re: Hanging on copying to tmp table 1435 Rick James 04/28/2012 01:37PM
Re: Hanging on copying to tmp table 1425 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.