[jboss-user] [EJB 3.0] - simple lazy loading question

X490812 do-not-reply at jboss.com
Mon Oct 29 19:55:00 EDT 2007


I have a query - the showplan shows no table scan - but the entity bean for the query has 6 clobs and 6 on-to-one relationships (legacy datamodel). My query takes a long time to run despite being fully indexed. HOWEVER, when I run it for just a small set of fields needed for the current form  it comes back very quickly - How do I get this quick query to populate the entity bean for the table, yet still be able to load the other entity bean fields later as needed - I was thinking lazy loading, but dont know how - Is that the right approach? If so are there examples?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100040#4100040

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100040



More information about the jboss-user mailing list