Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 56419633EB2 for ; Thu, 9 Apr 2009 05:17:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48167-09 for ; Thu, 9 Apr 2009 05:17:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mk-filter-3-a-1.mail.uk.tiscali.com (mk-filter-3-a-1.mail.uk.tiscali.com [212.74.100.54]) by mail.postgresql.org (Postfix) with ESMTP id 755D2633D1F for ; Thu, 9 Apr 2009 05:17:31 -0300 (ADT) X-Trace: 175943877/mk-filter-3.mail.uk.tiscali.com/B2C/$b2c-THROTTLED-DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/80.225.145.193/None/john.lister-ps@kickstone.com X-SBRS: None X-RemoteIP: 80.225.145.193 X-IP-MAIL-FROM: john.lister-ps@kickstone.com X-MUA: Thunderbird 2.0.0.21 (Windows/20090302) X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtUBANpL3UlQ4ZHB/2dsb2JhbAAIzlSDewY X-IronPort-AV: E=Sophos;i="4.40,159,1238972400"; d="scan'208";a="175943877" Received: from ppp-2-193.edin-b-1.access.uk.tiscali.com (HELO [192.168.6.11]) ([80.225.145.193]) by smtp.tiscali.co.uk with ESMTP; 09 Apr 2009 09:17:28 +0100 Message-ID: <49DDAF29.7040102@kickstone.com> Date: Thu, 09 Apr 2009 09:17:45 +0100 From: John Lister User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Oliver Jowett CC: Kris Jurka , pgsql-jdbc@postgresql.org Subject: Re: Array passing References: <491f66a50904070817o3af217d4odc32bdfd29b47789@mail.gmail.com> <49DBBF8D.2080806@kickstone.com> <49DCCAAA.3080604@ejurka.com> <143251E540984912A2F62CD2F136FC28@squarepi.com> <49DD3F2C.50709@opencloud.com> In-Reply-To: <49DD3F2C.50709@opencloud.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/41 X-Sequence-Number: 19488 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