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

Allow MetaStore manager to declare whether bulk reload is necessary #1132

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dimas-b
Copy link
Contributor

@dimas-b dimas-b commented Mar 7, 2025

This change is in anticipation of NoSQL persistence implementations.

A MetaStore manager does not have to use entity caching and provide fresh results from all load method, thus making the bulkValidate call redundant in Resolver.

This change does not alter existing behaviour, but enables future optimizations.

This change is in anticipation of NoSQL persistence implementations.

A MetaStore manager does not have to use entity caching and provide
fresh results from all load method, thus making the `bulkValidate`
call redundant in `Resolver`.

This change does not alter existing behaviour, but enables future
optimizations.

Co-authored-by: Robert Stupp <[email protected]>
Comment on lines +386 to +388
default boolean requiresEntityReload() {
return true;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the comment, I wonder if we could just use cache == null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what it looks like to me too, but I'd like to allow implementations to make this decision separately. We can revisit and remove this method when a NoSQL impl. is make available for review (if it happens to be redundat)... but so far it seems useful for our WIP code.

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

Successfully merging this pull request may close these issues.

2 participants