RE: returning partial result set

2002-01-11 Thread James Montebello
the > initial query. I tried Statement.setFetchSize() but that doesn't appear to > help. Any suggestions in this area? > > Thanks, > Bret > > -Original Message- > From: James Montebello [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 11, 2002 5:57 PM > To: Bret Ewin

RE: returning partial result set

2002-01-11 Thread Bret Ewin
ppear to help. Any suggestions in this area? Thanks, Bret -Original Message- From: James Montebello [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 5:57 PM To: Bret Ewin Cc: [EMAIL PROTECTED] Subject: Re: returning partial result set If all you want is the first page, then simpl

RE: returning partial result set

2002-01-11 Thread Gary . Every
PROTECTED] Subject: returning partial result set My system tends to generate large result sets, with the first page of results being used and the rest thrown away. I expect this is typical in other systems as well. I've noticed the JDBC driver retrieves the entire result set before lettin

Re: returning partial result set

2002-01-11 Thread James Montebello
If all you want is the first page, then simply use SELECT ... LIMIT n, which will only return the first n rows of the set. To "page through" data, use LIMIT offset, n, which will return n rows starting at offset rows into the dataset. Note that doing this on a changing table will give results t

FW: returning partial result set

2002-01-11 Thread Bret Ewin
partial result set My system tends to generate large result sets, with the first page of results being used and the rest thrown away. I expect this is typical in other systems as well. I've noticed the JDBC driver retrieves the entire result set before letting the application iterate ove

returning partial result set

2002-01-11 Thread Bret Ewin
My system tends to generate large result sets, with the first page of results being used and the rest thrown away. I expect this is typical in other systems as well. I've noticed the JDBC driver retrieves the entire result set before letting the application iterate over any results. I'm not sure