MySQL Forums
Forum List  »  Performance

Re: Performance of Views
Posted by: Felix Geerinckx
Date: August 16, 2005 03:11AM

Scott Sosna wrote:

> I have a query which joins four tables. When I explain the query directly (SELECT
> a, b, c, d FROM tab1, tab2...), the time is very good. When I explain the query through the view
> (SELECT * FROM view), the time goes up to 4 seconds. The query plans on each are fairly similar,
> except that the view's plan uses DERIVED instead of the four SIMPLE's I get with the query
> directly.

Would you care to post both EXPLAIN results, together with the exact command to generate them?
(and please use \G at the end instead of ; to keep the results readable).

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Views
Written By
Posted
2854
August 15, 2005 05:44PM
Re: Performance of Views
1570
August 16, 2005 03:11AM
1483
August 16, 2005 04:32PM
1602
August 18, 2005 05:26AM
1571
August 18, 2005 08:12PM
1620
August 19, 2005 03:16AM


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.