openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Minor <davemi...@gmail.com>
Subject Avoiding N+1 on collection in recursive relation
Date Tue, 08 Jul 2014 23:56:41 GMT
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?

-- 
_____________
David Minor

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message