You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the child entity only includes "id" that can be expressed via the parent FK, use a new strategy - "relatedViaParentFault" that would avoid an extra query for a relationship
TODO:
Since this eliminates the relationship prefetch, this change would not resolve or refresh target objects. So if the custom access checking (or other custom) code is in use, this strategy is not a good one, as it will result either in a large number of per-object queries or in stale data.
The text was updated successfully, but these errors were encountered:
andrus
changed the title
Use "relatedViaParentFault" strategy when only related "id" is requested
Optimization: "relatedViaParentFault" strategy when only related "id" is requested
Apr 3, 2023
An optimization of Cayenne RelatedDataResolver:
If the child entity only includes "id" that can be expressed via the parent FK, use a new strategy - "relatedViaParentFault" that would avoid an extra query for a relationship
TODO:
Since this eliminates the relationship prefetch, this change would not resolve or refresh target objects. So if the custom access checking (or other custom) code is in use, this strategy is not a good one, as it will result either in a large number of per-object queries or in stale data.
cc: #442, #539, #623
The text was updated successfully, but these errors were encountered: