pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Reuven M. Lerner <reuven@lerner.co.il>
To: Dave Cramer <pg@fastcrypt.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: Bound parameters on Linux are extremely slow (compared to unbound and/or Windows)
Date: Sun, 26 May 2013 02:47:24 +0300
Message-ID: <51A14D8C.7010201@lerner.co.il> (raw)
In-Reply-To: <CADK3HH+A4RiLOhSRwaEFP1gTBRSEHeCxMsYG-cgDokigJ6wUgA@mail.gmail.com>
References: <51A14091.7040909@lerner.co.il>
	<CADK3HH+p-z3pyCmUCBqQysUP1ePU=s2sGvksMkZQ008mXNv0xQ@mail.gmail.com>
	<51A14769.1080409@lerner.co.il>
	<CADK3HH+A4RiLOhSRwaEFP1gTBRSEHeCxMsYG-cgDokigJ6wUgA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

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



view thread (14+ messages)  latest in thread

Message-ID: <51A14D8C.7010201@lerner.co.il>
Permalink:  ../51A14D8C.7010201@lerner.co.il/
Also on:    postgresql.org/message-id/51A14D8C.7010201@lerner.co.il

 · 

reply

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: reuven@lerner.co.il, pg@fastcrypt.com
  Subject: Re: Bound parameters on Linux are extremely slow (compared to unbound and/or Windows)
  In-Reply-To: <51A14D8C.7010201@lerner.co.il>
  References: <51A14091.7040909@lerner.co.il> <CADK3HH+p-z3pyCmUCBqQysUP1ePU=s2sGvksMkZQ008mXNv0xQ@mail.gmail.com> <51A14769.1080409@lerner.co.il> <CADK3HH+A4RiLOhSRwaEFP1gTBRSEHeCxMsYG-cgDokigJ6wUgA@mail.gmail.com> <51A14D8C.7010201@lerner.co.il>

* 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