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

Use Query Cache for separate loading queries during entity fetching #3287

Open
dtaimanov opened this issue Sep 18, 2022 · 0 comments
Open

Use Query Cache for separate loading queries during entity fetching #3287

dtaimanov opened this issue Sep 18, 2022 · 0 comments

Comments

@dtaimanov
Copy link
Contributor

dtaimanov commented Sep 18, 2022

  • Platform version: 7.2.X

See forum topic to find reproducible case.

Problem

Separate loading of collection attribute (org.eclipse.persistence.internal.indirection.QueryBasedValueHolder#instantiate(...):147) does not use Query Cache.
When entity loaded with cached query, and further loading occurs during fetching according to view, nested entities loaded by not cached queries. It leads to repetitive loadings of entity graphs for each cached query if they are not subsequent.

Proposition

Investigate the possibility of "cached" property propagation for "nested" (fetching) queries in value holders.
Or rework fetching mechanism for cached queries to perform "nested" queries manually with "cached" flag, but not through QueryBasedValueHolder

@knstvk knstvk changed the title Use Query Cache for lazy loading queries during entity fetching Use Query Cache for separate loading queries during entity fetching Sep 19, 2022
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