wso2 / product-is

Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
748 stars 728 forks source link

Same query gets executed multiple times while serving a single request #21365

Open rksk opened 1 month ago

rksk commented 1 month ago

Describe the issue: The following query is executed 4-5 times per single authentication request despite the UserIDCache is there.

SELECT UM_USER_ID FROM UM_USER WHERE LOWER(UM_USER_NAME)=LOWER(?) AND UM_TENANT_ID=?

Due to two issues, it causes cache misses and executes above query multiple times.

Steps to reproduce

Environment information

rksk commented 3 days ago

This might be a duplicate of https://github.com/wso2/product-is/issues/21551 or related.