MySQL Forums
Forum List  »  InnoDB

Re: Extremely slow query
Posted by: Vinod Sugur
Date: December 05, 2008 02:10AM

Hi Akash,

Can you paste the Explain plan for the above mentioned queries?

Also please try executing the following queries:

SELECT host_ip , SUM(events), TRUNCATE((SUM(bytes) * 1.0000), 2), SUM(bytes)
FROM vp_top_summary use index (`vpts_f`)
WHERE report_id IN (8001,7001) AND host_id = 1 GROUP BY host_ip ORDER BY "MBytes" DESC LIMIT 20;



SELECT count(1)
FROM sgmsdb.vp_top_summary use index (`vpts_f`)
WHERE report_id IN (6001,7001) AND host_id = 1 GROUP BY host_ip ;

Let me know if it helps.

~
Vinod

Options: ReplyQuote


Subject
Views
Written By
Posted
3411
December 01, 2008 12:53AM
Re: Extremely slow query
1862
December 05, 2008 02:10AM
1676
December 19, 2008 01:11AM
1728
January 04, 2009 09:38PM
1656
January 05, 2009 07:18PM


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.