SUP-20034: Don't update the branch with a new schema version right away to speed up the schema update#1772
Open
plyhun wants to merge 2 commits into
Open
SUP-20034: Don't update the branch with a new schema version right away to speed up the schema update#1772plyhun wants to merge 2 commits into
plyhun wants to merge 2 commits into
Conversation
…ay to speed up the schema update
plyhun
commented
Jun 26, 2026
| public abstract class AbstractHibBranchSchemaVersion<SCV extends AbstractHibFieldSchemaVersion<?, ?, ?, ?, ?>> extends AbstractHibBaseElement { | ||
|
|
||
| @ManyToOne(optional = false) | ||
| @ManyToOne(optional = false, fetch = FetchType.LAZY) |
Contributor
Author
There was a problem hiding this comment.
We rarely need the version's branch info, unlike the schema below.
plyhun
commented
Jun 26, 2026
| .getSessionMetadataIntegrator() | ||
| .getSessionFactoryImplementor() | ||
| .getCache() | ||
| .evictCollectionData(entity.getClass().getCanonicalName() + maybeDistinctField.map(f -> "." + f).orElse(StringUtils.EMPTY), entity.getId()); |
Contributor
Author
There was a problem hiding this comment.
Tested for both single and cluster setup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Abstract
Checklist
General
/CHANGELOG.adocOn API Changes