Salve a tutti.
VI posto una eXPLAIN di una mia query sperando che qualcuno mi possa aiutare a capire perchè è così lenta.
Non so come postarla meglio!Penso che qualcosa si capisce no???
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY <derived2> system NULL NULL NULL NULL 0 const row not found
2 DERIVED ctordine ALL NULL NULL NULL NULL 2015 Using where; Using temporary; Using filesort
2 DERIVED attivita eq_ref PRIMARY,id_citta,id_ana,id_cat PRIMARY 4 vivicitta.ctordine.id_att 1 Using where
2 DERIVED utenti ref id_ana,flag id_ana 4 DB.attivita.id_ana 1 Using where
2 DERIVED anagrafica eq_ref PRIMARY PRIMARY 4 DB.utenti.id_ana 1 Using where
2 DERIVED citta eq_ref PRIMARY PRIMARY 4 DB.attivita.id_citta 1
2 DERIVED quartieri eq_ref PRIMARY PRIMARY 4 DB.attivita.id_quartiere 1
2 DERIVED categorie eq_ref PRIMARY PRIMARY 4 DB.attivita.id_cat 1
4 SUBQUERY categorie ALL NULL NULL NULL NULL 1280 Using where
3 SUBQUERY citta ALL NULL NULL NULL NULL 2 Using where