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

From: OgiSer Tamade <tamade(dot)ogiser(at)gmail(dot)com>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Saturación PostgreSQL
Date: 2010-07-14 20:43:38
Message-ID: AANLkTimXEaBEXtW6q77pdafUwM-8J6MRRnCrtnI565aS@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Hola,

adjunto el explain, se hace 2 vacuum al día. El servidor tiene 4 nucleos
vendor_id, hoy ejemplo me ha pasado con 95 usuarios, si bajamos a 75
funciona correctamente. Vuelvo a adjuntar el postgree.conf

: GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Xeon(R) CPU X3330 @ 2.66GHz
stepping : 10
cpu MHz : 1998.000
cache size : 3072 KB

Limit (cost=702.42..702.43 rows=1 width=121)

-> Sort (cost=702.42..702.43 rows=1 width=121)

Sort Key: s.callbackdate, c.priority, p.phoneid

-> Nested Loop (cost=321.26..702.41 rows=1 width=121)

Join Filter: ("inner".campaignid = "outer".campaignid)

-> Nested Loop (cost=321.26..701.23 rows=1 width=97)

-> Bitmap Heap Scan on phonestatus s
(cost=321.26..695.25 rows=1 width=16)

Recheck Cond: ((assignedto =
'A527MA'::text) AND (status = 'assigned'::text))

Filter: (((callbackdate <= now()) OR
(callbackdate IS NULL)) AND (sequenceid = (subplan)))

-> BitmapAnd (cost=321.26..321.26 rows=42 width=0)

-> Bitmap Index Scan on
phonestatus_assignedto_index (cost=0.00..73.66 rows=2473 width=0)

Index Cond: (assignedto = 'A527MA'::text)

-> Bitmap Index Scan on
phonestatus_status_index (cost=0.00..247.36 rows=7816 width=0)

Index Cond: (status = 'assigned'::text)

SubPlan

-> Result (cost=5.01..5.02 rows=1 width=0)

InitPlan

-> Limit (cost=0.00..5.01 rows=1 width=4)

-> Index Scan Backward
using phonestatus_pkey on phonestatus s2 (cost=0.00..10.03 rows=2
width=4)

Index Cond: (phoneid = $0)

Filter: (sequenceid
IS NOT NULL)

-> Index Scan using phonenumbers_pkey on
phonenumbers p (cost=0.00..5.97 rows=1 width=85)

Index Cond: (p.phoneid = "outer".phoneid)

Filter: ((campaignid = 31) OR (campaignid =
30) OR (campaignid = 29) OR (campaignid = 28) OR (campaignid = 26))

-> Seq Scan on campaigns c (cost=0.00..1.08 rows=8 width=32)

El 13 de julio de 2010 16:43, Silvio Quadri <silvioq(at)gmail(dot)com> escribió:

> El día 13 de julio de 2010 10:29, OgiSer Tamade
> <tamade(dot)ogiser(at)gmail(dot)com> escribió:
> > Normalmente ->
> >
> > Tiempo total de ejecución: 679.294 ms
> >
> > Cuando pasa del millon ->
> >
> > Tiempo total de ejecución: 12 584.879 ms
> >
>
> Hola
> Sin el explain se hace complicado ... ¿podrías ponerlo? Además,
> estaría bien el query y la definición de las tablas.
> ¿estás haciendo el vacuum analyze luego de un período de actualizaciones?
>
> Silvio
>

Attachment Content-Type Size
postgree.conf.txt text/plain 14.9 KB

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2010-07-14 20:53:40 Re: Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Saturación PostgreSQL
Previous Message Miguel Angel Hernandez Moreno 2010-07-14 12:23:45 Re: Alguien me puede dar una sugerencia!!