MySQL Forums
Forum List  »  Italian

Re: query: no risultati - no errori
Posted by: paolo tome
Date: January 31, 2012 06:28AM

risolto grazie ad un aiuto nel forum di mysql cambiando un parametro nel file di conf di mysql...

la variabile si chiama:
optimizer_search_depth

a seconda del valore che ha questa variabile, il mysql genera dei piani di ottimizzazione della query. Di default questo valore รจ di 62. Essendo il numero di tabelle nel db abbastanza elevato, le combinazioni possibili che il mysql deve generare prima di decidersi a fare la query aumentano in modo esponenziale ed i tempi si allungano all'infinito!

Cambiando il valore di questa variabile da 62 a 4 la query viene eseguita in 0.007 secondi, accettabile direi!!!!!

grazie a tutti! ciao

Options: ReplyQuote


Subject
Views
Written By
Posted
2554
January 29, 2012 09:18PM
Re: query: no risultati - no errori
1718
January 31, 2012 06:28AM


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.