Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UgOBf-00054P-8D for pgsql-jdbc@arkaria.postgresql.org; Sat, 25 May 2013 23:47:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UgOBe-0008I8-LY for pgsql-jdbc@arkaria.postgresql.org; Sat, 25 May 2013 23:47:46 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UgOBd-0008I2-P3 for pgsql-jdbc@postgresql.org; Sat, 25 May 2013 23:47:45 +0000 Received: from server.lerner.co.il ([69.55.231.200] helo=lerner.co.il) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UgOBX-0001rT-Rt for pgsql-jdbc@postgresql.org; Sat, 25 May 2013 23:47:45 +0000 Received: by lerner.co.il (Postfix, from userid 1003) id 6C7DC5D65C0; Sun, 26 May 2013 02:47:39 +0300 (IDT) X-DKIM: Sendmail DKIM Filter v2.8.3 lerner.co.il 6C7DC5D65C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lerner.co.il; s=MAILOUT; t=1369525659; bh=EGz3Zi00d38rgy18HiWFKS1KPv8xov4MNdaG2jz/uWg=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=viKFyIIxhOmccK9LuSF9INCnBspT/hUi4df+BWcL6hPZAjSsgbAQaDv0pXKHudk75 Xd08TGwiGcUCyGuwVXKeTKp9gi++IdMo2qpTPcZlXnANV/6yyODE18UhwjweSScH8D oMXevhFyJuVZ94x4znqc3R31spUpNS5PbSpZclxA= X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lerner.co.il X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no version=3.3.2 Received: from MacBookPro.local (bzq-79-183-100-62.red.bezeqint.net [79.183.100.62]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: reuven) by lerner.co.il (Postfix) with ESMTPSA id 2D46F5D64A3; Sun, 26 May 2013 02:47:26 +0300 (IDT) X-DKIM: Sendmail DKIM Filter v2.8.3 lerner.co.il 2D46F5D64A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lerner.co.il; s=MAILOUT; t=1369525648; bh=EGz3Zi00d38rgy18HiWFKS1KPv8xov4MNdaG2jz/uWg=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=G3VMlcwyUbSKDI/ScMDmExUe4rc+KlVNBPmyzvdfZyD+8FiIlDyTNIyTdVEViw/Kr VU83G3Mjy6SNSxK5XtH4RK3NKH+DCk2PqbhIztS3w0RH3b2hetvhPCfl6GNUtaduNC pl6WAtjJxWXabNqZ4J/TwnVL1BV3fMHNWoW+ZmL8= Message-ID: <51A14D8C.7010201@lerner.co.il> Date: Sun, 26 May 2013 02:47:24 +0300 From: "Reuven M. Lerner" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Dave Cramer CC: List Subject: Re: Bound parameters on Linux are extremely slow (compared to unbound and/or Windows) References: <51A14091.7040909@lerner.co.il> <51A14769.1080409@lerner.co.il> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.2 (/) 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 Thanks for the suggestions, Dave; I'm traveling, but will get the added data and post to the list ASAP. I appreciate your time and ideas. One of your answers has piqued my curiosity, though: > Is there an option in JDBC that can give us a more direct connection? > > Yes but you will have no protection from sql injection. You can use protocol 2 add protocolVersion=2 to the url > We don't need to worry about SQL injection in this particular application, so far as I know. (I'll obviously check with the developers, to make sure that it's really a zero chance, but I'm 95% sure that it's an internal app without any external data sources.) What else would we lose by switching to protocol version 2? Does this version not use parameter binding? I'm just wondering what will and won't work in protocol 2, and why it might be faster for our purposes. Reuven -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc