Re: Lentitud en un insert

From: Rodriguez Fernando <rodriguez(at)ort(dot)edu(dot)uy>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Lentitud en un insert
Date: 2010-09-06 11:39:41
Message-ID: 4C84D2FD.1070502@ort.edu.uy
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

El 06/09/2010 4:37, Horacio Miranda escribió:
> Un insert no genera bloqueo un select for update sí..
>
> Ahora si estas haciendo un insert y tienes una llave foranea sin
> indice (como se dijo aca, apuntando a cualquier cosa) por ahí a lo
> mejor estas teniendo demora.
>
> 2010/9/6 OgiSer Tamade<tamade(dot)ogiser(at)gmail(dot)com>:
>> Hola,
>>
>> el siguiente insert tarda mucho en ejecutarse, a nivel de CPU casi no
>> consume, creo que puede ser debido a que la tabla esta bloqueada, ¿Como
>> puedo activar algún log para ver si el problema viene por ahi ?
>>
>> duración: 476.445 ms sentencia: INSERT INTO
>> calls (sourcechannel, sourcecontext,
>> sourcecallerid, sourceuniqueid,
>> dialednumber,
>> destinationchannel, destinationcontext, destinationcallerid,
>> destinationuniqueid,
>> queue, username, campaignid, jointime, ringtime, answertime, hanguptime,
>> type) VALUES
>> ('SIP/252-00000039', 'interno', '252', '1283680542.2377', NULL,
>> 'Local/70260103073(at)interno-2b26;1', 'call-attendant', '70260103073',
>> '1283680532.2362',
>> NULL, 'B252', NULL, NULL, NULL, NULL, NULL, 'Outgoing');
>
>
Hola a todos, que dice el explain analyze verbose ?, si tenes una
foreign key te aparece como trigger constraint, eso es lo que deberias
revisar que tenga indice o mejor aún reindexarlo

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Miguel Angel Hernandez Moreno 2010-09-06 17:08:03 Re: status de conexion
Previous Message Horacio Miranda 2010-09-06 07:37:43 Re: Lentitud en un insert