-
Notifications
You must be signed in to change notification settings - Fork 968
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…#2147) The verifiable addresses are loaded eagerly into the identity. When that happens, the `identity_verifiable_addresses` table is queried by `nid` and `identity_id`. This index should greatly improve performance, especially of the `/sessions/whoami` endpoint.
- Loading branch information
Showing
10 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...ql/migrations/sql/20220114135828000000_verified_address_identity_index.cockroach.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_verifiable_addresses_nid_identity_id_idx"; |
1 change: 1 addition & 0 deletions
1
.../sql/migrations/sql/20220114135828000000_verified_address_identity_index.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 @@ | ||
CREATE INDEX "identity_verifiable_addresses_nid_identity_id_idx" ON "identity_verifiable_addresses" (nid, identity_id); |
1 change: 1 addition & 0 deletions
1
...ce/sql/migrations/sql/20220114135828000000_verified_address_identity_index.mysql.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_verifiable_addresses_nid_identity_id_idx` ON `identity_verifiable_addresses`; |
1 change: 1 addition & 0 deletions
1
...ence/sql/migrations/sql/20220114135828000000_verified_address_identity_index.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 @@ | ||
CREATE INDEX `identity_verifiable_addresses_nid_identity_id_idx` ON `identity_verifiable_addresses` (`nid`, `identity_id`); |
1 change: 1 addition & 0 deletions
1
...sql/migrations/sql/20220114135828000000_verified_address_identity_index.postgres.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_verifiable_addresses_nid_identity_id_idx"; |
1 change: 1 addition & 0 deletions
1
...e/sql/migrations/sql/20220114135828000000_verified_address_identity_index.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 @@ | ||
CREATE INDEX "identity_verifiable_addresses_nid_identity_id_idx" ON "identity_verifiable_addresses" (nid, identity_id); |
1 change: 1 addition & 0 deletions
1
.../sql/migrations/sql/20220114135828000000_verified_address_identity_index.sqlite3.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_verifiable_addresses_nid_identity_id_idx"; |
1 change: 1 addition & 0 deletions
1
...ce/sql/migrations/sql/20220114135828000000_verified_address_identity_index.sqlite3.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 @@ | ||
CREATE INDEX "identity_verifiable_addresses_nid_identity_id_idx" ON "identity_verifiable_addresses" (nid, identity_id); |
1 change: 1 addition & 0 deletions
1
...istence/sql/migrations/templates/20220114135828_verified_address_identity_index.down.fizz
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_verifiable_addresses", "identity_verifiable_addresses_nid_identity_id_idx") |
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/templates/20220114135828_verified_address_identity_index.up.fizz
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 @@ | ||
add_index("identity_verifiable_addresses", ["nid", "identity_id"], { "name": "identity_verifiable_addresses_nid_identity_id_idx" }) |