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
6610
December 01, 2005 03:33AM
2910
December 07, 2005 08:18AM
2718
December 09, 2005 02:32PM
2659
December 19, 2005 11:58PM
3162
December 30, 2005 12:43PM
Re: slow subquery (query is fast)
3403
December 30, 2005 02:25PM
2617
February 22, 2006 01:06PM
5217
February 23, 2006 08:04AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.