Skip to Content
4
Former Member
Jan 12, 2016 at 11:42 AM

How to specialize a query regarding fetch type

294 Views

Hi experts, I need some guidance about flexible search. Can we set fetching type for a specific flexible search query considering performance issue. Because, while getting and handling lazy collection after getting query result collection on web server side to prepare heavy data, it asks to db for onetomany lazy relations, therefore it tries to reach persistence layer for every bag again and again. So i need to set as eager just for specified query to get rid of this situation, in this way i intend to go to db only one time. Is there a solution for that or anything else? Any comments are welcome...