tag:blogger.com,1999:blog-9150561117329868491.post1952706933501103070..comments2023-10-08T20:48:43.878+05:30Comments on My Journey Through IT: @BatchSize() Annotation in hibernateDinuka Arseculeratnehttp://www.blogger.com/profile/13924080326710656628noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-9150561117329868491.post-68068512674991909412012-07-30T11:16:03.029+05:302012-07-30T11:16:03.029+05:30Hi Again Jeremy,
Looks like you were correct. Got...Hi Again Jeremy,<br /><br />Looks like you were correct. Got it clarified through this link;<br /><br />http://www.jroller.com/eyallupu/entry/tuning_queries_using_paging_batch<br /><br />Thank you very much for bringing this forward. I will amend the post with the changes.<br /><br />Cheers<br /><br />DinukaDinuka Arseculeratnehttps://www.blogger.com/profile/13924080326710656628noreply@blogger.comtag:blogger.com,1999:blog-9150561117329868491.post-77941180083399176282012-07-30T11:07:24.291+05:302012-07-30T11:07:24.291+05:30Hi Jeremy,
That is an interesting point you have ...Hi Jeremy,<br /><br />That is an interesting point you have brought forward. Never thought of the functionality in that way. But i have a query. Would really appreciate if you can clarify it to me;<br /><br />Pls check the following link;<br /><br />http://www.mkyong.com/hibernate/hibernate-fetching-strategies-examples/<br /><br />According to him, in his example, the collection is filled with a Dinuka Arseculeratnehttps://www.blogger.com/profile/13924080326710656628noreply@blogger.comtag:blogger.com,1999:blog-9150561117329868491.post-71685277951867933762012-07-25T06:50:10.169+05:302012-07-25T06:50:10.169+05:30I think you've totally misunderstood this one....I think you've totally misunderstood this one. BatchSize doesn't affect how many attached objects are retrieved. It affects how many uninitialised collection associations are fetched in one query.<br /><br />Regardless of @BatchSize setting, the example you've got will always retrieve all (100) Airlines. @BatchSize controls how many lists of airlines will be retrieved. Assuming the Anonymoushttps://www.blogger.com/profile/10697312477546876145noreply@blogger.com