Re: Problems with extra N+1 requests - likely due to poor mapping defns, but not sure how to rectify


Andy
 
Edited

Audit "addPerson" and "modPerson" aren't embedded, they are related (using JDO terminology).

Your mapping definition controls where things are stored, and what is in the default fetch group. Your runtime API usage defines what is in the active fetch group.
What is in the fetch group defines what is fetched ... clue in the name. Kodo maybe didn't have JDO (2) fetch groups.

You rectify it by specifying the appropriate fetching (group) for the appropriate moment in the API usage.

Join main@datanucleus.groups.io to automatically receive all group messages.