my dog learned polymorphism*
The moose likes Object Relational Mapping and the fly likes Hibernate fetch size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate fetch size" Watch "Hibernate fetch size" New topic
Author

Hibernate fetch size

anuja Edathu
Ranch Hand

Joined: Sep 09, 2005
Posts: 84
Hi,
Is there any default fetch size for hibernate ? If my DB table contains 10000 records and i perform a select without any criteria will all the 10000 records be fetched @ the time itself ? Can i define the fetch size ? if so how ?

Thanks & Regards,
Anuja K
Sebastian Hennebrueder
Ranch Hand

Joined: Sep 09, 2004
Posts: 49
Search for fetchSize or batch fetching in the Hibernate Reference

Best Regards

Sebastian


Things get always more complicated as expected.<br />Author of eBook Hibernate 3 Developer Guide by example<br />Tutorials about Hibernate, EJB, Struts, JSF <a href="http://www.laliluna.de" target="_blank" rel="nofollow">www.laliluna.de</a>
 
wood burning stoves
 
subject: Hibernate fetch size
 
Similar Threads
Query to fetch 100 records in 1000
Best practice to access large data from database
paging resultset in servlets
Out of Memory Exception in Websphere
Regarding fetching the records based on a fetchsize limit