From: John Lister <john.lister@kickstone.com>
To: Thomas Finneid <tfinneid@fcon.no>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: pooled prepared statements
Date: Wed, 13 May 2009 15:37:17 +0100
Message-ID: <03C41048CEFD45DD97AC0DD884C8A21A@squarepi.com> (raw)
References: <4A0978A3.6030900@fcon.no>
<4A099C8F.60709@kickstone.com>
<4A09C4E6.3010408@fcon.no>
<4A09D04B.9070206@kickstone.com>
<4A0A7D50.40704@fcon.no>
>>> Probably easier to create a server side function instead, then.
>> But wouldn't you still have to go through all the planning steps within
>> the function for any queries, although i'll admit i'm not familiar with
>> Postgresql functions.
>
> Server-side functions are compiled when installed. Since my function would
> only contain simple queries that are parameterized, it would pre-compile
> well.
It was the simpler queries I was thinking of and the overhead in the
planning(preparing) stage compared with fetching the results rather than any
complexity around them For example fetching session data using a session_id
on a web server which is done many times over..
Although i'm not sure how much overhead there is in the planning stages
compared with actually fetching the data and if the tradeoff of complexity
is worth it...
JOHN
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: john.lister@kickstone.com, tfinneid@fcon.no
Subject: Re: pooled prepared statements
In-Reply-To: <03C41048CEFD45DD97AC0DD884C8A21A@squarepi.com>
References: <4A0978A3.6030900@fcon.no> <4A099C8F.60709@kickstone.com> <4A09C4E6.3010408@fcon.no> <4A09D04B.9070206@kickstone.com> <4A0A7D50.40704@fcon.no> <03C41048CEFD45DD97AC0DD884C8A21A@squarepi.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