MySQL Forums
Forum List  »  Optimizer & Parser

Re: MySQL can't find index = really slow query...
Posted by: Alessio Pianigiani
Date: September 25, 2006 09:06AM

I simpy pasted your query, and the EXPLAIN command gave me those results:


id,"select_type","table","type","possible_keys","key","key_len","ref","rows","Extra"
1,"SIMPLE","p","const","PRIMARY","PRIMARY","4","const",1,""
1,"SIMPLE","d","const","PRIMARY","PRIMARY","4","const",1,""
1,"SIMPLE","c","const","PRIMARY","PRIMARY","2","const",1,""
1,"SIMPLE","pr","const","PRIMARY,provincia_ID","PRIMARY","2","const",1,""
1,"SIMPLE","r","const","PRIMARY,regione_ID","PRIMARY","2","const",1,""
1,"SIMPLE","a","ALL","","","","",88339,"Using where"
1,"SIMPLE","n","ALL","","","","",91010,"Using where"

Is your pruposed query just a better formed query, or it's also a better performing one?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL can't find index = really slow query...
1904
September 25, 2006 09:06AM


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.