pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Adam Palmblad <adam@terapeak.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow C Function
Date: Tue, 09 May 2006 16:09:19 -0700
Message-ID: <4461211F.8020300@commandprompt.com> (raw)
In-Reply-To: <6B5AF6293A289F45826220B17ABE79370D5F4C@BORON.aers.local>
References: <6B5AF6293A289F45826220B17ABE79370D5F4C@BORON.aers.local>

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/





view thread (3+ messages)  latest in thread

Message-ID: <4461211F.8020300@commandprompt.com>
Permalink:  ../4461211F.8020300@commandprompt.com/
Also on:    postgresql.org/message-id/4461211F.8020300@commandprompt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jd@commandprompt.com, adam@terapeak.com
  Subject: Re: Slow C Function
  In-Reply-To: <4461211F.8020300@commandprompt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox