-
Notifications
You must be signed in to change notification settings - Fork 969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: remove duplicate queries during settings flow and use better index hint for credentials lookup #4193
Merged
Merged
feat: remove duplicate queries during settings flow and use better index hint for credentials lookup #4193
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
62cf409
feat: load session only once when middleware is used
aeneasr 129b457
chore: synchronize workspaces
aeneasr d7b725d
feat: reduce duplicate identity hydration calls
aeneasr ca19163
chore: synchronize workspaces
aeneasr 6c52297
chore: synchronize workspaces
aeneasr 4247aa4
chore: synchronize workspaces
aeneasr e88bb4d
chore: synchronize workspaces
aeneasr 9cee2e3
chore: synchronize workspaces
aeneasr 863ac19
chore: synchronize workspaces
aeneasr 8a3266e
chore: synchronize workspaces
aeneasr 69d0094
chore: synchronize workspaces
aeneasr 0e6fc80
chore: synchronize workspaces
aeneasr 8a14b0d
chore: synchronize workspaces
aeneasr a794b69
chore: synchronize workspaces
aeneasr 90a7b29
chore: synchronize workspaces
aeneasr c2d41d6
chore: synchronize workspaces
aeneasr 3faa890
chore: synchronize workspaces
aeneasr ebc0b40
chore: synchronize workspaces
aeneasr 2eafd7d
chore: synchronize workspaces
aeneasr 11e611c
chore: synchronize workspaces
aeneasr e6b8b09
chore: synchronize workspaces
aeneasr cfb15b2
chore: synchronize workspaces
aeneasr 8087a0e
chore: synchronize workspaces
aeneasr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alnr i changed the index structure to use
identity_credential_id
as the prefix (it is also the highest cardinality) and then we can use it both for FK and the query credentials