Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XW7Os-0002A8-8j for pgsql-jdbc@arkaria.postgresql.org; Mon, 22 Sep 2014 17:27:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XW7Or-0007pW-PJ for pgsql-jdbc@arkaria.postgresql.org; Mon, 22 Sep 2014 17:27:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XW7Or-0007pQ-2L for pgsql-jdbc@postgresql.org; Mon, 22 Sep 2014 17:27:45 +0000 Received: from blu004-omc3s9.hotmail.com ([65.55.116.84]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XW7On-0004dP-RG for pgsql-jdbc@postgresql.org; Mon, 22 Sep 2014 17:27:43 +0000 Received: from BLU436-SMTP103 ([65.55.116.73]) by BLU004-OMC3S9.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22724); Mon, 22 Sep 2014 10:27:40 -0700 X-TMN: [6OKfqQtZ8ZBO0vBFnHFzVzagA9AMl8j2] X-Originating-Email: [edsonrichter@hotmail.com] Message-ID: Received: from [192.168.1.10] ([189.27.180.90]) by BLU436-SMTP103.smtp.hotmail.com over TLS secured channel with Microsoft SMTPSVC(8.0.9200.16384); Mon, 22 Sep 2014 10:27:39 -0700 Date: Mon, 22 Sep 2014 14:27:36 -0300 From: Edson Richter User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Disk buffering of resultsets References: <541E7FC3.3000201@2ndquadrant.com> <3F6D0B4E-2FA9-42D0-8C2C-DC68E6D0D641@gmail.com> In-Reply-To: <3F6D0B4E-2FA9-42D0-8C2C-DC68E6D0D641@gmail.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 22 Sep 2014 17:27:39.0445 (UTC) FILETIME=[8226DE50:01CFD68A] X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Atenciosamente, Edson Carlos Ericksson Richter On 22-09-2014 14:16, Steven Schlansker wrote: > On Sep 21, 2014, at 12:35 AM, Craig Ringer 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=92t such a mechanism be built on top of the JDBC API? Then it co= uld work > independently of the Driver implementation. > > Additionally, if this does get implemented, please leave it off by defaul= t. We > have many SSDs backing our database server and very little space / IOPS on > application nodes (intentionally, and I=92m not sure we are the only ones= ) so > suddenly spilling to disk could be disastrous for our performance. Seems obvious, because new features like this proposal should always be=20 off by default. +1. I've designed application architecture to overcome such limitations,=20 and I'm really not interested in having disk cache slowing down my App=20 server... Thanks, Edson. > > > --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc