View Single Post

   
  #5 (permalink)  
Old 04-16-2008, 12:11 AM
Oliver Jowett
 
Posts: n/a
Default Re: how to monitor the amount of bytes fetched in a executeQuery()

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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Reply With Quote