From: John Lister <john.lister-ps@kickstone.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Array passing
Date: Thu, 09 Apr 2009 09:17:45 +0100
Message-ID: <49DDAF29.7040102@kickstone.com> (raw)
In-Reply-To: <49DD3F2C.50709@opencloud.com>
References: <E20C873C7A4448C3AF0A68B421ADED62@squarepi.com>
<491f66a50904070817o3af217d4odc32bdfd29b47789@mail.gmail.com>
<49DBBF8D.2080806@kickstone.com>
<Pine.BSO.4.64.0904072207470.17908@leary.csoft.net>
<C4640F583F47456D893E9D5E32806580@squarepi.com>
<49DCCAAA.3080604@ejurka.com>
<143251E540984912A2F62CD2F136FC28@squarepi.com>
<49DD3F2C.50709@opencloud.com>
Oliver Jowett wrote:
> John Lister wrote:
>
>> Personally I think the extra network traffic is worth it.
>
> Maybe for your use case, but are you prepared to make that decision
> for every user of the driver?
>
> (also, it's the added latency that's really the problem, for simple
> queries you could end up doubling the execution time)
>
I agree and wasn't suggesting it be applied to everyone/query. I was
planning to add an option (as is already the case in the original patch).
Additionally it probably only makes sense to do this for
PreparedStatements as normal Statements are likely to be simple one off
queries. Also given the jdbc docs states they are pre-compiled you'd
expect prepared statements to suffer some slight overhead during the
preparation in return for better execution time.
Thoughts
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-ps@kickstone.com, oliver@opencloud.com, books@ejurka.com
Subject: Re: Array passing
In-Reply-To: <49DDAF29.7040102@kickstone.com>
References: <E20C873C7A4448C3AF0A68B421ADED62@squarepi.com> <491f66a50904070817o3af217d4odc32bdfd29b47789@mail.gmail.com> <49DBBF8D.2080806@kickstone.com> <Pine.BSO.4.64.0904072207470.17908@leary.csoft.net> <C4640F583F47456D893E9D5E32806580@squarepi.com> <49DCCAAA.3080604@ejurka.com> <143251E540984912A2F62CD2F136FC28@squarepi.com> <49DD3F2C.50709@opencloud.com> <49DDAF29.7040102@kickstone.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