MySQL Forums
Forum List  »  Spanish

Re: consulta lentisima
Posted by: Diego Medina
Date: February 06, 2008 11:11PM

wow, que query bien larga,

Bueno, si todavia estas por ahi,

Es bien lenta por el uso de Sub-queries, que en version 6.0 recien trae varias mejoras en velocidad, pero si no es necesario real time, l oque podes hacer es crear una tabla nueva que va a almacenar este resultado y luego podes hacer un crontab (linux) que corra esta query y almacene el resultado en esa tabla.

Luego tenes que modificar tu aplicacion para que lea de esta tabla nueva y no que haga esa query tan larga.

Suerte.

Diego Medina
Web Developer
http://www.fmpwizard.com

P.S. Please read this post if you are going to post code

Options: ReplyQuote


Subject
Views
Written By
Posted
3007
December 03, 2007 04:44PM
Re: consulta lentisima
1783
February 06, 2008 11:11PM


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.