From: | Együd Csaba (Freemail) <csegyud(at)freemail(dot)hu> |
---|---|
To: | 'Alvaro Herrera' <alvherre(at)dcc(dot)uchile(dot)cl> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Very slow stored proc |
Date: | 2004-12-23 20:48:56 |
Message-ID: | 0I9700MTU0HH09@mail.vnet.hu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Dear Alvarao,
would you please so kind explaining me your opinion in details.
thanks,
-- Csaba
-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Alvaro Herrera
Sent: Thursday, December 23, 2004 3:58 PM
To: Együd Csaba (Freemail)
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Very slow stored proc
On Thu, Dec 23, 2004 at 10:51:46AM +0100, Együd Csaba (Freemail) wrote:
Hi,
> I've got it. Not the date handling is slow but the string handling.
> Eliminating the huge string buffer and running all the inserts row by
> row, the overall running time is 12 sec.
> So as a conclusion never use large strings in plpgsql functions.
I wonder why you are creating a table at all, when you could probably use a
SRF instead in the queries where you are using such table.
--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>) "La tristeza es un muro entre
dos jardines" (Khalil Gibran)
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 2004.12.22.
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 2004.12.22.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 2004.12.22.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 2004.12.22.
From | Date | Subject | |
---|---|---|---|
Next Message | Mike | 2004-12-23 21:22:42 | Caching/Indexing Function Output |
Previous Message | Michael Fuhr | 2004-12-23 20:33:03 | Re: update table with row locking |