Skip to content

Use native query for registrar-users console user query - #3182

Merged
gbrodman merged 1 commit into
google:masterfrom
gbrodman:userQueryRoles
Jul 29, 2026
Merged

Use native query for registrar-users console user query#3182
gbrodman merged 1 commit into
google:masterfrom
gbrodman:userQueryRoles

Conversation

@gbrodman

@gbrodman gbrodman commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

This means we don't have to load all users and filter them out later. In practice this doesn't matter because the user table is relatively small (a few hundred) but 1. who knows what can happen in the future? 2. this makes the code analysis tools happier

we can get rid of the suppression once we're on jpa 4.0+ and hibernate 8.x+ and the API becomes nicer

we have to use the native query because Hibernate treats hstore as a mystery type and can't "see" inside it

if we had many many more users we could add a GIN index on the hstore column but with a table of this size, that's more trouble than it's worth.


This change is Reviewable

This means we don't have to load all users and filter them out later. In
practice this doesn't matter because the user table is relatively small
(a few hundred) but 1. who knows what can happen in the future? 2. this
makes the code analysis tools happier
@gbrodman
gbrodman requested a review from jicelhay July 29, 2026 19:56

@jicelhay jicelhay 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.

@jicelhay reviewed 1 file and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on gbrodman).

@gbrodman
gbrodman added this pull request to the merge queue Jul 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 29, 2026
@gbrodman
gbrodman added this pull request to the merge queue Jul 29, 2026
Merged via the queue into google:master with commit 4cc3fc9 Jul 29, 2026
16 checks passed
@gbrodman
gbrodman deleted the userQueryRoles branch July 29, 2026 23:23
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