• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Setting fetch size for fast retrieval of data  RSS feed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a doubt implementing setting the fetch size.I set the fetch size for statement and result set as follows.
statement.setFetchSize(300);
rs.setFetchSize(300);
but if i'm changing(increase or decrease) fetchsize of statement as well as rs , the time required for processing increase ,and i found that this combination gaves the better result.Number of records fetched is 304.
Why it is behaving like this ? can any one help me ?
is there any connection between number of rows expected and fetch size.If it is then suggest me how to find suitable combination.
We are using connection pool from an application server.
Also if i'm using a cachedrowset how can i set the fetchsize if i'm using rowset.exceuteonnection con);
Rgds
George
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!