From: Oliver Jowett <oliver@opencloud.com>
To: Albert Cardona <acardona@ini.phys.ethz.ch>
Cc: pgsql-jdbc@postgresql.org
Cc: Nicholas E. Wakefield <nwakefield@kineticnetworks.com>
Subject: Re: how to monitor the amount of bytes fetched in a executeQuery()
Date: Thu, 13 Jul 2006 09:46:02 +1200
Message-ID: <44B56D9A.5030302@opencloud.com> (raw)
In-Reply-To: <200607120856.12722.acardona@ini.phys.ethz.ch>
References: <2F2A7EB72EBAF24582513E72ACCBCAAE11A2D6@kniexch01.KineticNetworks.com>
<200607120856.12722.acardona@ini.phys.ethz.ch>
Albert Cardona wrote:
> Also, the ability to monitor the amount of bytes loaded would be an nice
> addition to the driver itself. Perhaps a small Monitor class that extends
> Thread, which monitors the receiving InputStream and provides a single
> getLoadedBytes() method?
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.
-O
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: oliver@opencloud.com, acardona@ini.phys.ethz.ch, nwakefield@kineticnetworks.com
Subject: Re: how to monitor the amount of bytes fetched in a executeQuery()
In-Reply-To: <44B56D9A.5030302@opencloud.com>
References: <2F2A7EB72EBAF24582513E72ACCBCAAE11A2D6@kniexch01.KineticNetworks.com> <200607120856.12722.acardona@ini.phys.ethz.ch> <44B56D9A.5030302@opencloud.com>
* 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