Skip to content

Implement proper bulk loads in the transaction manager - #3233

Merged
gbrodman merged 1 commit into
google:masterfrom
gbrodman:bulkLoads
Sep 21, 2026
Merged

gbrodman merged 1 commit into
google:masterfrom
gbrodman:bulkLoads

Conversation

@gbrodman

@gbrodman gbrodman commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Previously we just looped over and loaded each entity one by one. It's better to try to limit it to fewer queries (ideally one). Fortunately, Hibernate supports bulk load of entities with both compound and simple IDs.


This change is Reviewable

}

private static class CompoundId implements Serializable {
private static class CompoundId extends ImmutableObject implements Serializable {
}

private static class NamedCompoundId implements Serializable {
private static class NamedCompoundId extends ImmutableObject implements Serializable {
@gbrodman
gbrodman requested a review from weiminyu September 21, 2026 15:40

@weiminyu weiminyu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@weiminyu reviewed 2 files and all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on gbrodman).

@gbrodman
gbrodman added this pull request to the merge queue Sep 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 21, 2026
@gbrodman
gbrodman added this pull request to the merge queue Sep 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 21, 2026
Previously we just looped over and loaded each entity one by one. It's
better to try to limit it to fewer queries (ideally one). Fortunately,
Hibernate supports bulk load of entities with both compound and simple
IDs.
@gbrodman
gbrodman enabled auto-merge September 21, 2026 18:40
@gbrodman
gbrodman added this pull request to the merge queue Sep 21, 2026
Merged via the queue into google:master with commit 901e6ab Sep 21, 2026
14 of 16 checks passed
@gbrodman
gbrodman deleted the bulkLoads branch September 21, 2026 20:12
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.

3 participants