From: Albert Cardona <acardona@ini.phys.ethz.ch>
To: Oliver Jowett <oliver@opencloud.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: how to monitor the amount of bytes fetched in a executeQuery()
Date: Wed, 12 Jul 2006 15:00:00 -0700
Message-ID: <200607121500.01107.acardona@ini.phys.ethz.ch> (raw)
In-Reply-To: <44B56D9A.5030302@opencloud.com>
References: <2F2A7EB72EBAF24582513E72ACCBCAAE11A2D6@kniexch01.KineticNetworks.com>
<200607120856.12722.acardona@ini.phys.ethz.ch>
<44B56D9A.5030302@opencloud.com>
> 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
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: acardona@ini.phys.ethz.ch, oliver@opencloud.com
Subject: Re: how to monitor the amount of bytes fetched in a executeQuery()
In-Reply-To: <200607121500.01107.acardona@ini.phys.ethz.ch>
References: <2F2A7EB72EBAF24582513E72ACCBCAAE11A2D6@kniexch01.KineticNetworks.com> <200607120856.12722.acardona@ini.phys.ethz.ch> <44B56D9A.5030302@opencloud.com> <200607121500.01107.acardona@ini.phys.ethz.ch>
* 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