Re: how to monitor the amount of bytes fetched in a executeQuery()

Поиск
Список
Период
Сортировка
От Albert Cardona
Тема Re: how to monitor the amount of bytes fetched in a executeQuery()
Дата
Msg-id 200607121500.01107.acardona@ini.phys.ethz.ch
обсуждение исходный текст
Ответ на Re: how to monitor the amount of bytes fetched in a executeQuery()  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
> Well, there's only one InputStream per connection really.. If a
> bytecount from there is useful it wouldn't be too hard to expose
> (perhaps on PGconnection), but it'd only be approximate because that one
> stream is used for all activity on the connection including other
> columns, protocol overhead, etc.


That would definitely work for me, since data is orders of magnitude larger
than any overheads. In any case it would serve the purpose of showing that
the connection is not stuck, that bytes are flowing in even if -on occasions-
slowly. One could even use it to calculate connection/download/upload speed
and thus provide very nice information to the impatient user.

I will have a look at the code myself but I'm not familiar with it -you say
it's at PGconnection class?


Albert


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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: how to monitor the amount of bytes fetched in a executeQuery()
Следующее
От: "Folorunsho, Abayomi"
Дата:
Сообщение: CLASS EXCEPTION org.postgresql.Driver