Hello,
I have simple model like :
Code:
Employee (1) ------ (0..n) Tasks (not shared with other employee)
(1)
|
|
|
(0..n)
Addresses (which can be email, phones, ...)
I have a lot of Employees (> 5 000 000), who have some tasks (100+) and some addresses (10+).
I already read and try fetching strategies exposed here : http://docs.jboss.org/hibernate/orm/3.6/reference/en-US/html/performance.html
But I'm not convinced by any (too many sql requests).
Is there a way to have
SUBSELECT fetching with
query.scrool(ScrollMode.FORWARD_ONLY) ?
How do you do this kind of work ?
Thanks