Add index on IDN_AUTH_SESSION_STORE #6555
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes in this pull request
To improve the perf in password grant flow
This pull request includes changes to add a new index to the
IDN_AUTH_SESSION_STORE
table in various database scripts. The new index is created on the columnsSESSION_ID
,SESSION_TYPE
, andTIME_CREATED DESC
.Database script updates:
features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/dbscripts/db2.sql
: AddedCREATE INDEX IDX_IDN_AUTH_SSTR_ID_ST_TM ON IDN_AUTH_SESSION_STORE (SESSION_ID, SESSION_TYPE, TIME_CREATED DESC)
.features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/dbscripts/h2.sql
: AddedCREATE INDEX IDX_IDN_AUTH_SSTR_ID_ST_TM ON IDN_AUTH_SESSION_STORE (SESSION_ID, SESSION_TYPE, TIME_CREATED)
.features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/dbscripts/mssql.sql
: AddedCREATE INDEX IDX_IDN_AUTH_SSTR_ID_ST_TM ON IDN_AUTH_SESSION_STORE (SESSION_ID, SESSION_TYPE, TIME_CREATED DESC)
.features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/dbscripts/mysql-cluster.sql
: AddedCREATE INDEX IDX_IDN_AUTH_SSTR_ID_ST_TM ON IDN_AUTH_SESSION_STORE (SESSION_ID, SESSION_TYPE, TIME_CREATED DESC)
.features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/dbscripts/mysql.sql
: AddedCREATE INDEX IDX_IDN_AUTH_SSTR_ID_ST_TM ON IDN_AUTH_SESSION_STORE (SESSION_ID, SESSION_TYPE, TIME_CREATED DESC)
.features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/dbscripts/oracle.sql
: AddedCREATE INDEX IDX_IDN_AUTH_SSTR_ID_ST_TM ON IDN_AUTH_SESSION_STORE (SESSION_ID, SESSION_TYPE, TIME_CREATED DESC)
.features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/dbscripts/oracle_rac.sql
: AddedCREATE INDEX IDX_IDN_AUTH_SSTR_ID_ST_TM ON IDN_AUTH_SESSION_STORE (SESSION_ID, SESSION_TYPE, TIME_CREATED DESC)
.features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/dbscripts/postgresql.sql
: AddedCREATE INDEX IDX_IDN_AUTH_SSTR_ID_ST_TM ON IDN_AUTH_SESSION_STORE (SESSION_ID, SESSION_TYPE, TIME_CREATED DESC)
.