From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
---|---|
To: | "wilhelmtg(at)cantv(dot)net" <wilhelmtg(at)cantv(dot)net> |
Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: Query Lento |
Date: | 2004-09-01 00:09:10 |
Message-ID: | 20040901000910.GM6895@dcc.uchile.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
On Tue, Aug 31, 2004 at 07:45:21PM -0400, wilhelmtg(at)cantv(dot)net wrote:
Hola,
Que tal poner la consulta un poco mas legible?
SELECT u.id_usuario, u.email, w.*
FROM tabla1 AS w
INNER JOIN tabla2 AS u
ON w.id_usuario = u.id_usuario
WHERE w.id_admin = 8
AND w.alcanzado LIKE 'link_%' limit 10";
Bastante mejor, cierto?
Ahora, la verdad es que sin un EXPLAIN ANALYZE de esta consulta nos
resulta dificil ayudarte.
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Ellos andaban todos desnudos como su madre los parió, y también las mujeres,
aunque no vi más que una, harto moza, y todos los que yo vi eran todos
mancebos, que ninguno vi de edad de más de XXX años" (Cristóbal Colón)
From | Date | Subject | |
---|---|---|---|
Next Message | tgutierrez | 2004-09-01 00:52:09 | Re: ayuda-configuracion-mem-postgresql |
Previous Message | wilhelmtg@cantv.net | 2004-08-31 23:45:21 | Query Lento |