-
-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
persistence/sql/migrations/sql/20221220124639000000_errors_index.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,3 @@ | ||
CREATE INDEX selfservice_errors_nid_idx ON selfservice_errors (id, nid); | ||
|
||
DROP INDEX selfservice_errors_errors_nid_id_idx; |
6 changes: 6 additions & 0 deletions
6
persistence/sql/migrations/sql/20221220124639000000_errors_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,6 @@ | ||
CREATE INDEX selfservice_errors_nid_idx ON selfservice_errors (id, nid); | ||
|
||
-- needed for foreign key constraint, was there before implicitly | ||
CREATE INDEX selfservice_errors_nid_only_idx ON selfservice_errors (nid); | ||
|
||
DROP INDEX selfservice_errors_errors_nid_id_idx ON selfservice_errors; |
4 changes: 4 additions & 0 deletions
4
persistence/sql/migrations/sql/20221220124639000000_errors_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,4 @@ | ||
CREATE INDEX selfservice_errors_errors_nid_id_idx ON selfservice_errors (nid, id); | ||
|
||
-- This index is not needed anymore, because the primary ID index together with the new index cover all queries. | ||
DROP INDEX selfservice_errors_nid_idx ON selfservice_errors; |
4 changes: 4 additions & 0 deletions
4
persistence/sql/migrations/sql/20221220124639000000_errors_index.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 selfservice_errors_errors_nid_id_idx ON selfservice_errors (nid, id); | ||
|
||
-- This index is not needed anymore, because the primary ID index together with the new index cover all queries. | ||
DROP INDEX selfservice_errors_nid_idx; |
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