Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: high db cpu utilisation on query (#3260)
- Loading branch information
Showing
5 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
persistence/sql/migrations/20220916000010000000_hydra_oauth2_flow.cockroach.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE INDEX hydra_oauth2_flow_multi_query_idx | ||
ON hydra_oauth2_flow | ||
( | ||
consent_error ASC, state ASC, subject ASC, | ||
client_id ASC, consent_skip ASC, consent_remember | ||
ASC, nid ASC | ||
); |
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/20220916000010000000_hydra_oauth2_flow.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP INDEX hydra_oauth2_flow_multi_query_idx; |
7 changes: 7 additions & 0 deletions
7
persistence/sql/migrations/20220916000010000000_hydra_oauth2_flow.mysql.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE INDEX hydra_oauth2_flow_multi_query_idx | ||
ON hydra_oauth2_flow | ||
( | ||
consent_error(2) ASC, state ASC, subject ASC, | ||
client_id ASC, consent_skip ASC, consent_remember | ||
ASC, nid ASC | ||
); |
7 changes: 7 additions & 0 deletions
7
persistence/sql/migrations/20220916000010000000_hydra_oauth2_flow.postgres.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE INDEX hydra_oauth2_flow_multi_query_idx | ||
ON hydra_oauth2_flow | ||
( | ||
(consent_error::varchar(2)) ASC, state ASC, subject ASC, | ||
client_id ASC, consent_skip ASC, consent_remember | ||
ASC, nid ASC | ||
); |
7 changes: 7 additions & 0 deletions
7
persistence/sql/migrations/20220916000010000000_hydra_oauth2_flow.sqlite.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE INDEX hydra_oauth2_flow_multi_query_idx | ||
ON hydra_oauth2_flow | ||
( | ||
consent_error ASC, state ASC, subject ASC, | ||
client_id ASC, consent_skip ASC, consent_remember | ||
ASC, nid ASC | ||
); |