Skip to content

When expiring sessions, check if sessions exist to avoid a lot of extra queries - #55246

Merged
ahus1 merged 1 commit into
keycloak:release/26.8from
ahus1:is-54886-backport-26.8
Nov 18, 2026
Merged

ahus1 merged 1 commit into
keycloak:release/26.8from
ahus1:is-54886-backport-26.8

Conversation

@ahus1

@ahus1 ahus1 commented Nov 16, 2026

Copy link
Copy Markdown
Member

Closes #54886

(cherry picked from commit 44f3366)

…ra queries

Closes keycloak#54886

(cherry picked from commit 44f3366)

Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@gmx.net>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@ruchikajha95 ruchikajha95 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM . Thanks @ahus1

@ahus1
ahus1 marked this pull request as ready for review November 18, 2026 15:34
@ahus1
ahus1 requested a review from a team as a code owner November 18, 2026 15:34
@ahus1
ahus1 enabled auto-merge (squash) November 18, 2026 15:34
@ahus1
ahus1 merged commit 8647c3d into keycloak:release/26.8 Nov 18, 2026
91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session expiration task issues ~37x more SELECTs per realm since 26.8.0 (64 session buckets), causing constant DB load with many realms

3 participants