Re: Forcing cursor behavior

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Forcing cursor behavior
Дата
Msg-id 4A659236.2050305@opencloud.com
обсуждение исходный текст
Ответ на Re: Forcing cursor behavior  (Shawn Heisey <pgsql@elyograg.org>)
Список pgsql-jdbc
Shawn Heisey wrote:

> To the person with the Cyrillic name that also responded ... how much
> effort would be involved in writing the delegating driver you described?

http://onjava.com/pub/a/onjava/2001/12/05/optimization.html may be a
useful starting point for this.

You'd basically want a set of wrappers as described there, plus a Driver
or Datasource implementation (depending on what your app uses) that
handled building a wrapper Connection around the real connection
obtained from the PostgreSQL driver. Then your wrapper implementations
can mangle autocommit and fetchsize as you see fit (and presumably not
delegate setAutoCommit(true) calls from the app down to the driver either)

-O

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

Предыдущее
От: Shawn Heisey
Дата:
Сообщение: Re: Forcing cursor behavior
Следующее
От: Віталій Тимчишин
Дата:
Сообщение: Re: Forcing cursor behavior