Re: Bound parameters on Linux are extremely slow (compared to unbound and/or Windows)

Поиск
Список
Период
Сортировка
От Reuven M. Lerner
Тема Re: Bound parameters on Linux are extremely slow (compared to unbound and/or Windows)
Дата
Msg-id 51A14D8C.7010201@lerner.co.il
обсуждение исходный текст
Ответ на Re: Bound parameters on Linux are extremely slow (compared to unbound and/or Windows)  (Dave Cramer <pg@fastcrypt.com>)
Ответы Re: Bound parameters on Linux are extremely slow (compared to unbound and/or Windows)
Список pgsql-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


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Bound parameters on Linux are extremely slow (compared to unbound and/or Windows)
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Bound parameters on Linux are extremely slow (compared to unbound and/or Windows)