Skip to content

Commit

Permalink
fix: high db cpu utilisation on query (#3260)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjprd committed Oct 26, 2022
1 parent 8b77f5a commit 4bf995d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
@@ -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
);
@@ -0,0 +1 @@
DROP INDEX hydra_oauth2_flow_multi_query_idx;
@@ -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
);
@@ -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
);
@@ -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
);

0 comments on commit 4bf995d

Please sign in to comment.