From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Nicolás Domínguez Florit <ndomin(at)rec(dot)unicen(dot)edu(dot)ar> |
Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: dudas de un insert |
Date: | 2005-12-13 14:53:01 |
Message-ID: | 20051213145300.GF29443@surnet.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Nicolás Domínguez Florit escribió:
>
> Tengo una senetencia sql como la siguiente:
>
> INSERT INTO dh03 SELECT * FROM DHTEMP;
> Query OK, 65066 rows affected (364,05 sec)
>
> y dhtemp tiene aprox. 65000 filas. El insert me tarda en ejecutar 364
> segundos!
Hay llaves foraneas en la tabla dh03? Triggers?
> PD:Buscando en google encontre una pagina con algo que no se que tan cierto
> sera (http://www.sambar.polie.nl/sqllite.htm)
> Test 10: INSERTs from a SELECT
> BEGIN;
> INSERT INTO t1 SELECT * FROM t2;
> INSERT INTO t2 SELECT * FROM t1;
> COMMIT;
> PostgreSQL: 54.822
> MySQL: 1.512
> SQLite 2.4: 4.423
> SQLite 2.4 (nosync): 2.386
>
> The poor performance of PostgreSQL in this case appears to be due to its
> synchronous behavior. The CPU was mostly idle during the 55 second run.
Si no hizo un diagnostico preciso, es dificil saber si es cierto. Yo
diria que no.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From | Date | Subject | |
---|---|---|---|
Next Message | Loan Joa Matos | 2005-12-13 14:57:58 | Dudas sobre Slony |
Previous Message | Edwin Quijada | 2005-12-13 14:42:59 | Re: Obtener Direccion IP de la Maquina |