Speed up client and authorization lookup with database indexes #12
7
src/main/resources/db/migration/V7__database_indexes.sql
Normal file
7
src/main/resources/db/migration/V7__database_indexes.sql
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
ALTER TABLE oauth2_authorization_consent
|
||||||
|
ADD INDEX IF NOT EXISTS I_authorization_consent_registered_client_principal (registered_client_id, principal_name);
|
||||||
|
|
||||||
|
ALTER TABLE v2_oauth2_authorization ADD INDEX IF NOT EXISTS I_authorization_access_token (access_token);
|
||||||
|
ALTER TABLE v2_oauth2_authorization ADD INDEX IF NOT EXISTS I_authorization_code_token (code_token);
|
||||||
|
|
||||||
|
ALTER TABLE v2_client ADD INDEX IF NOT EXISTS I_client_client_id (client_id);
|
||||||
Loading…
x
Reference in New Issue
Block a user