-
-
Notifications
You must be signed in to change notification settings - Fork 964
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove duplicate queries during settings flow and use better in…
…dex hint for credentials lookup (#4193) This patch reduces duplicate GetIdentity queries as part of submitting the settings flow, and improves an index to significantly reduce credential lookup. For better debugging, more tracing ha been added to the settings module.
- Loading branch information
Showing
38 changed files
with
334 additions
and
259 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.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 IF EXISTS identity_credential_identifiers_nid_ici_i_idx; |
2 changes: 2 additions & 0 deletions
2
persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.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,2 @@ | ||
CREATE INDEX IF NOT EXISTS identity_credential_identifiers_nid_ici_i_idx | ||
ON identity_credential_identifiers (nid ASC, identity_credential_id ASC, identifier ASC); |
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/sql/20241106142200000001_identities.mysql.autocommit.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 identity_credential_identifiers_nid_ici_i_idx ON identity_credential_identifiers; |
2 changes: 2 additions & 0 deletions
2
persistence/sql/migrations/sql/20241106142200000001_identities.mysql.autocommit.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,2 @@ | ||
CREATE INDEX identity_credential_identifiers_nid_ici_i_idx | ||
ON identity_credential_identifiers (nid ASC, identity_credential_id ASC, identifier ASC); |
4 changes: 4 additions & 0 deletions
4
persistence/sql/migrations/sql/20241106142200000002_identities.autocommit.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,4 @@ | ||
CREATE INDEX IF NOT EXISTS identity_credential_identifiers_identity_credential_id_idx | ||
ON identity_credential_identifiers (identity_credential_id ASC); | ||
|
||
DROP INDEX IF EXISTS identity_credential_identifiers_ici_nid_i_idx; |
4 changes: 4 additions & 0 deletions
4
persistence/sql/migrations/sql/20241106142200000002_identities.autocommit.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,4 @@ | ||
CREATE INDEX IF NOT EXISTS identity_credential_identifiers_ici_nid_i_idx | ||
ON identity_credential_identifiers (identity_credential_id ASC, nid ASC, identifier ASC); | ||
|
||
DROP INDEX IF EXISTS identity_credential_identifiers_identity_credential_id_idx; |
4 changes: 4 additions & 0 deletions
4
persistence/sql/migrations/sql/20241106142200000002_identities.mysql.autocommit.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,4 @@ | ||
CREATE INDEX identity_credential_identifiers_identity_credential_id_idx | ||
ON identity_credential_identifiers (identity_credential_id ASC); | ||
|
||
DROP INDEX identity_credential_identifiers_ici_nid_i_idx ON identity_credential_identifiers; |
4 changes: 4 additions & 0 deletions
4
persistence/sql/migrations/sql/20241106142200000002_identities.mysql.autocommit.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,4 @@ | ||
CREATE INDEX identity_credential_identifiers_ici_nid_i_idx | ||
ON identity_credential_identifiers (identity_credential_id ASC, nid ASC, identifier ASC); | ||
|
||
DROP INDEX identity_credential_identifiers_identity_credential_id_idx ON identity_credential_identifiers; |
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
Oops, something went wrong.