Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XW7EI-0001jP-B6 for pgsql-jdbc@arkaria.postgresql.org; Mon, 22 Sep 2014 17:16:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XW7EH-0004Wt-QS for pgsql-jdbc@arkaria.postgresql.org; Mon, 22 Sep 2014 17:16:49 +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 1XW7EG-0004Wm-Py for pgsql-jdbc@postgresql.org; Mon, 22 Sep 2014 17:16:48 +0000 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XW7ED-0004Rm-9b for pgsql-jdbc@postgresql.org; Mon, 22 Sep 2014 17:16:47 +0000 Received: by mail-pa0-f53.google.com with SMTP id hz1so4910325pad.12 for ; Mon, 22 Sep 2014 10:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3ANgfBXdhgGtBsgajz3YIhSGZSq3Ui0zpU1EUKMdI8w=; b=sQwakQO5RVCe8Vi7CDIOXOH6aqnNPEMZ1GLv5I1/axTLvYbfH9Zz0jyLu0JBMRge11 JRxov85r3rMAclWqhF+RrJM7fl7brrqrofz0TAP05y4ddKKIEbp7G+U2BpISZvJ+UK6/ M7o/P5yFpARBKd/Y6dvMKAtEd6LYU8lb9Xh9gX9lW7W3UNqIBfvvksA2FTFDB8q7uuhC 1oAj9nd1k5HJUD1+VVnh8qFxPT0rVgHjT4UTZKgi86M3qlgXBrWMFluu1bliQt1mO1aZ dpeuhoTbvOVwGIBkA8gAXM3r/E9zIGLFZ7qa+wGkpamGMN8XfeWA5GKGmQqPFDEuRd1S ZT9Q== X-Received: by 10.67.30.200 with SMTP id kg8mr22746502pad.35.1411406203952; Mon, 22 Sep 2014 10:16:43 -0700 (PDT) Received: from [10.10.21.81] (otra.opentable.com. [199.16.144.7]) by mx.google.com with ESMTPSA id tx8sm9927577pac.42.2014.09.22.10.16.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Sep 2014 10:16:43 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Disk buffering of resultsets From: Steven Schlansker In-Reply-To: <541E7FC3.3000201@2ndquadrant.com> Date: Mon, 22 Sep 2014 10:16:40 -0700 Cc: "Lussier, Denis" , Dave Cramer , Enrico Olivelli - Diennea , "pgsql-jdbc@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <3F6D0B4E-2FA9-42D0-8C2C-DC68E6D0D641@gmail.com> References: <541E7FC3.3000201@2ndquadrant.com> To: Craig Ringer X-Mailer: Apple Mail (2.1878.6) X-Pg-Spam-Score: -2.0 (--) 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 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. >=20 > Actually, on second thought, if we're going to do this we'd be silly to > restrict it to spilling to disk. >=20 > 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 dr= iver? Shouldn=92t such a mechanism be built on top of the JDBC API? Then it coul= d 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=92m not sure we are the only ones) = so suddenly spilling to disk could be disastrous for our performance. --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc