Skip to content

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
hotfix-3.1.xfrom
hotfix-3.1.x-sup-20034
Open

SUP-20034: Don't update the branch with a new schema version right away to speed up the schema update#1772
plyhun wants to merge 2 commits into
hotfix-3.1.xfrom
hotfix-3.1.x-sup-20034

Conversation

@plyhun

@plyhun plyhun commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Abstract

Checklist

General

  • Added abstract that describes the change
  • Added changelog entry to /CHANGELOG.adoc
  • Ensured that the change is covered by tests
  • Ensured that the change is documented in the docs

On API Changes

  • Checked if the changes are breaking or not
  • Added GraphQL API if applicable
  • Added Elasticsearch mapping if applicable

@plyhun plyhun requested a review from npomaroli June 26, 2026 12:12
@plyhun plyhun self-assigned this Jun 26, 2026
public abstract class AbstractHibBranchSchemaVersion<SCV extends AbstractHibFieldSchemaVersion<?, ?, ?, ?, ?>> extends AbstractHibBaseElement {

@ManyToOne(optional = false)
@ManyToOne(optional = false, fetch = FetchType.LAZY)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We rarely need the version's branch info, unlike the schema below.

.getSessionMetadataIntegrator()
.getSessionFactoryImplementor()
.getCache()
.evictCollectionData(entity.getClass().getCanonicalName() + maybeDistinctField.map(f -> "." + f).orElse(StringUtils.EMPTY), entity.getId());

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Tested for both single and cluster setup.

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.

1 participant