From: Steven Schlansker <stevenschlansker@gmail.com>
To: Craig Ringer <craig@2ndquadrant.com>
Cc: Lussier, Denis <denisl@openscg.com>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Enrico Olivelli - Diennea <enrico.olivelli@diennea.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Disk buffering of resultsets
Date: Mon, 22 Sep 2014 10:16:40 -0700
Message-ID: <3F6D0B4E-2FA9-42D0-8C2C-DC68E6D0D641@gmail.com> (raw)
In-Reply-To: <541E7FC3.3000201@2ndquadrant.com>
References: <CAHKhnVUW9hu9ePD9zeVmvkeRjK8VaO9_jVDdqiNPf8=xBkaM1Q@mail.gmail.com>
<541E7FC3.3000201@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
On Sep 21, 2014, at 12:35 AM, Craig Ringer <craig@2ndquadrant.com> wrote:
> On 09/21/2014 11:24 AM, Lussier, Denis wrote:
>> This does seem very worthwhile. Can someone please sketch out a
>> mini-design and see if it makes sense to the pgjdbc core? I'd be
>> willing to hack some code, but, I'd want the design to be pre-vetted.
>
> Actually, on second thought, if we're going to do this we'd be silly to
> restrict it to spilling to disk.
>
> What we should have is the ability to flush a resultset to non-memory
> storage that provides a given interface when it exceeds a given size.
This all sounds very interesting, but should it really be baked into the driver?
Shouldn’t such a mechanism be built on top of the JDBC API? Then it could work
independently of the Driver implementation.
Additionally, if this does get implemented, please leave it off by default. We
have many SSDs backing our database server and very little space / IOPS on
application nodes (intentionally, and I’m not sure we are the only ones) so
suddenly spilling to disk could be disastrous for our performance.
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: stevenschlansker@gmail.com, craig@2ndquadrant.com, denisl@openscg.com, pg@fastcrypt.com, enrico.olivelli@diennea.com
Subject: Re: Disk buffering of resultsets
In-Reply-To: <3F6D0B4E-2FA9-42D0-8C2C-DC68E6D0D641@gmail.com>
References: <CAHKhnVUW9hu9ePD9zeVmvkeRjK8VaO9_jVDdqiNPf8=xBkaM1Q@mail.gmail.com> <541E7FC3.3000201@2ndquadrant.com> <3F6D0B4E-2FA9-42D0-8C2C-DC68E6D0D641@gmail.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