MySQL Forums
Forum List  »  Optimizer & Parser

Re: slow subquery (query is fast)
Posted by: Matthias Horn
Date: December 30, 2005 02:25PM

Hello,

surprisingly, a corresponding select

select idThumbUDF from "UserFields" where not exists (select "idThumb" from "Thumbnail" where "idThumb" = "idThumbUDF")

takes only a second to run.
The MySQL optimizer seems to do a good job on subqueries like this.
But why takes a delete which doesn't delete anything so much more time?

Regards,
Matthias

Options: ReplyQuote


Subject
Views
Written By
Posted
6462
December 01, 2005 03:33AM
2836
December 07, 2005 08:18AM
2647
December 09, 2005 02:32PM
2576
December 19, 2005 11:58PM
3097
December 30, 2005 12:43PM
Re: slow subquery (query is fast)
3326
December 30, 2005 02:25PM
2542
February 22, 2006 01:06PM
5144
February 23, 2006 08:04AM


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.