Skip to content

Conversation

@stummb
Copy link
Contributor

@stummb stummb commented Jul 19, 2021

In order to prevent bad performance on databases that cannot
optimize subqueries in deletes, transformed the deleteExpiredClientSessions
statement.

Also had to use SQL because JPA does not allow joins in deletes.

In order to prevent bad performance on databases that cannot
optimize subqueries in deletes, transformed the deleteExpiredClientSessions
statement.

Also had to use SQL because JPA does not allow joins in deletes.
@hmlnarik
Copy link
Contributor

Thank you for the PR. Sadly, the native SQL is not compatible with other database engines. This issue is valid, and needs to be fixed by some other solution, ideally overriding the deleteExpiredClientSessions query only in mysql / mariadb case.

@hmlnarik hmlnarik self-assigned this Jul 26, 2021
@hmlnarik hmlnarik added area/storage Indicates an issue that touches storage (change in data layout or data manipulation) kind/bug Categorizes a PR related to a bug labels Jul 26, 2021
@hmlnarik
Copy link
Contributor

hmlnarik commented Sep 8, 2021

Replaced by #8415

@hmlnarik hmlnarik closed this Sep 8, 2021
@stummb stummb deleted the KEYCLOAK-18842 branch October 30, 2021 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/storage Indicates an issue that touches storage (change in data layout or data manipulation) kind/bug Categorizes a PR related to a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants