Re: I can't wait too much: Total runtime 432478.44 msec

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Christopher Browne <cbbrowne(at)libertyrms(dot)info>, "Fernando Papa" <fpapa(at)claxson(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: I can't wait too much: Total runtime 432478.44 msec
Date: 2003-08-01 21:31:52
Message-ID: 200308011431.52677.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Fernando,

> AND cont_publicacion.fecha_publicacion = (SELECT max(cp1.fecha_publicacion)
> FROM cont_publicacion cp1
> WHERE cp1.id_instalacion = cont_publicacion.id_instalacion
> AND cp1.id_contenido = cont_publicacion.id_contenido
> AND cp1.generar_vainilla =
cont_publicacion.generar_vainilla)

Or event changing it to:

AND EXISTS (SELECT max(cp1.fecha_publicacion)
FROM cont_publicacion cp1
WHERE cp1.id_instalacion = cont_publicacion.id_instalacion
AND cp1.id_contenido = cont_publicacion.id_contenido
AND cp1.generar_vainilla = cont_publicacion.generar_vainilla
HAVING max(cp1.fecha_publicacion) = cont_publicacion.fecha_publicacion)
--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Ron Johnson 2003-08-01 23:56:33 Re: Domains (Was [PERFORM] Views With Unions)
Previous Message Christopher Browne 2003-08-01 21:27:08 Re: I can't wait too much: Total runtime 432478.44 msec