From 27ecf7f00fa2f81aff26fdc5f2becd6fb6d54a7f Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Tue, 23 Aug 2022 11:22:09 +0200 Subject: [PATCH] Use session level cache and avoid resolving by ID too often Closes #12381 --- .../jpa/JpaMapKeycloakTransaction.java | 20 ++++++++++++------- .../models/map/role/MapRoleProvider.java | 10 ++-------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/JpaMapKeycloakTransaction.java b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/JpaMapKeycloakTransaction.java index bb8334dcff..2355059075 100644 --- a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/JpaMapKeycloakTransaction.java +++ b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/JpaMapKeycloakTransaction.java @@ -104,13 +104,19 @@ public abstract class JpaMapKeycloakTransaction