mirror of https://github.com/ory/hydra
Merge 1d3e39d9bf into 75373b2584
This commit is contained in:
commit
2362fc59f1
|
|
@ -0,0 +1 @@
|
|||
DROP INDEX IF EXISTS hydra_oauth2_trusted_jwt_bearer_issuer_key_id;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
-- `key_id` is unique-ish per row so we place it first in the index to make queries including it very fast.
|
||||
-- Other fields have very few distinct values in the table so having them first in the index makes queries do a full table scan.
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS hydra_oauth2_trusted_jwt_bearer_issuer_key_id ON hydra_oauth2_trusted_jwt_bearer_issuer (key_id ASC, issuer ASC, subject ASC, nid ASC);
|
||||
Loading…
Reference in New Issue