Skip site navigation (1) Skip section navigation (2)

Re: Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Saturación PostgreSQL

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: OgiSer Tamade <tamade(dot)ogiser(at)gmail(dot)com>
Cc: pgsql-es-ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Saturación PostgreSQL
Date: 2010-07-14 21:32:06
Message-ID: 1279143041-sup-6636@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-es-ayuda
Excerpts from OgiSer Tamade's message of mié jul 14 17:25:53 -0400 2010:
> SELECT S.phoneid, S.sequenceid
> FROM  d_campaigns C, d_phonestatus S
> WHERE C.campaignid IN (17,16,15,14,13)   AND C.campaignid=S.campaignid   AND
> S.sequenceid=(
> 
>              SELECT MAX(S2.sequenceid) FROM d_phonestatus S2 WHERE
> S2.phoneid=S.phoneid  )
> 
> AND (S.assignedto IS NULL OR (S.assignedto<>'A436MA' AND
> (S.status='rejected' OR
> S.status='error')))
> AND (S.callbackdate <= NOW() OR S.callbackdate IS
> NULL)
> ORDER BY S.callbackdate, C.priority DESC, S.phoneid LIMIT 1

Esta no es la misma consulta de la que mostraste el EXPLAIN.

In response to

Responses

pgsql-es-ayuda by date

Next:From: OgiSer TamadeDate: 2010-07-14 21:33:42
Subject: Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Re: [pgsql
Previous:From: OgiSer TamadeDate: 2010-07-14 21:25:53
Subject: Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Re: [pgsql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group