From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Adam Palmblad <adam(at)terapeak(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Slow C Function |
Date: | 2006-05-09 23:09:19 |
Message-ID: | 4461211F.8020300@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Adam Palmblad wrote:
>
> Hi,
>
> We've got a C function that we use here and we find that for every
> connection, the first run of the function is much slower than any
> subsequent runs. ( 50ms compared to 8ms)
That is fairly standard because the data will be cached.
>
> Besides using connection pooling, are there any options to improve
> performance?
Not that I know of but then again I am not a C programer.
>
> By the way, we are using pg version 8.1.3.
>
> -Adam
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>
--
=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Craig A. James | 2006-05-10 00:38:17 | Postgres gets stuck |
Previous Message | Adam Palmblad | 2006-05-09 21:57:09 | Slow C Function |