-
-
Notifications
You must be signed in to change notification settings - Fork 949
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: missing index on courier list count (#3002)
- Loading branch information
1 parent
8b647b1
commit 3b50711
Showing
6 changed files
with
72 additions
and
8 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
5 changes: 5 additions & 0 deletions
5
persistence/sql/migrations/sql/20230104193739000000_courier_list_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,5 @@ | ||
DROP INDEX courier_messages_nid_created_at_id_idx; | ||
|
||
DROP INDEX courier_messages_nid_status_created_at_id_idx; | ||
|
||
DROP INDEX courier_messages_nid_recipient_created_at_id_idx; |
5 changes: 5 additions & 0 deletions
5
persistence/sql/migrations/sql/20230104193739000000_courier_list_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,5 @@ | ||
DROP INDEX courier_messages_nid_created_at_id_idx ON courier_messages; | ||
|
||
DROP INDEX courier_messages_nid_status_created_at_id_idx ON courier_messages; | ||
|
||
DROP INDEX courier_messages_nid_recipient_created_at_id_idx ON courier_messages; |
5 changes: 5 additions & 0 deletions
5
persistence/sql/migrations/sql/20230104193739000000_courier_list_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,5 @@ | ||
CREATE INDEX courier_messages_nid_created_at_id_idx ON courier_messages (nid, created_at DESC); | ||
|
||
CREATE INDEX courier_messages_nid_status_created_at_id_idx ON courier_messages (nid, status, created_at DESC); | ||
|
||
CREATE INDEX courier_messages_nid_recipient_created_at_id_idx ON courier_messages (nid, recipient, created_at DESC); |
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