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

From: Albert Cardona <acardona(at)ini(dot)phys(dot)ethz(dot)ch>
To: pgsql-jdbc(at)postgresql(dot)org
Cc: "Nicholas E(dot) Wakefield" <nwakefield(at)kineticnetworks(dot)com>
Subject: Re: how to monitor the amount of bytes fetched in a executeQuery()
Date: 2006-07-12 15:56:12
Message-ID: 200607120856.12722.acardona@ini.phys.ethz.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


Hum, it would be infinitely more convenient, for deployment purposes, not to
touch the driver at all. What I can do maybe is to hack the driver with
reflection, since private fields can be accessed as well (except in applets).

Since you've done it before, would you mind sharing the caveats you went
through, general warnings and also the particular class where the receiving
InputStream for the ResultSet is? That would save a lot of time!

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?

Thanks for your insight Nicholas.

Albert

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Chris White (cjwhite) 2006-07-12 16:09:17 Unsubscribe pgsql-jdbc
Previous Message Lucas Sousa 2006-07-12 11:45:01 Re: executeQuery Locked