MySQL Forums
Forum List  »  Italian

Una query che impiega un incredibile quantita' di tempo(inspiegabilmente)
Posted by: Michele Carandente
Date: March 29, 2010 05:53AM

Salve a tutti.
Ho un problema con una query Mysql.

La query e' piu' o meno questa:

SELECT * FROM mail_db WHERE mail_db.user_id = 21 AND mail_db.uidl NOT IN (SELECT uidl FROM mail_temp WHERE user_id = 21);

Nel database un una cosa come 1000 linee in entrambe le tabelle... ma questa query ci mette circa 5 secondi per essere eseguita...
Temo che il problema sia di grammatica (funziona, ma magari non e' la via piu' efficace).

Qualche consiglio?
Grazie

Options: ReplyQuote


Subject
Views
Written By
Posted
Una query che impiega un incredibile quantita' di tempo(inspiegabilmente)
4240
March 29, 2010 05:53AM


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.