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: "relatedViaQueryWithParentIds" strategy when limit is involved #624

Closed
andrus opened this issue Apr 2, 2023 · 0 comments
Closed
Milestone

Comments

@andrus
Copy link
Contributor

andrus commented Apr 2, 2023

An optimization of Cayenne RelatedDataResolver:

If the parent entity has limit, assume a "large" result and switch over to "relatedViaQueryWithParentIds" strategy for fetching children. Suppose we can utilize a threshhold here (e.g. strategy = limit > 0 && limit < 5000 ? relatedViaQueryWithParentIds : relatedViaQueryWithParentExp) .

@andrus andrus changed the title Optimize Cayenne relationship resolvers Use "relatedViaQueryWithParentIds" strategy when limit is involved Apr 3, 2023
@andrus andrus changed the title Use "relatedViaQueryWithParentIds" strategy when limit is involved Optimization: "relatedViaQueryWithParentIds" strategy when limit is involved Apr 3, 2023
@andrus andrus added this to the 5.0.M16 milestone Apr 3, 2023
@andrus andrus closed this as completed 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