Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Avoiding N+1 on collection in recursive relation

$
0
0
I have an entity (A) that has a recursive OneToMany relation with itself
(children). A also has a OneToMany relation to entity B.

Whenever A is fetched, the queries to fetch B for entity A and its children
are all separate queries.

Is there any way to avoid this?

Viewing all articles
Browse latest Browse all 5648

Trending Articles