Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization: "relatedViaParentFault" strategy when only related "id" is requested #625

Open
andrus opened this issue Apr 3, 2023 · 0 comments

Comments

@andrus
Copy link
Contributor

andrus commented 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

@andrus 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant