IO-3015 add additional indexs.

This commit is contained in:
Patrick Fic
2024-11-01 21:33:03 -07:00
parent db5dcc271d
commit 56472d24d9
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- CREATE index idx_messages_unread_agg ON messages (read, isoutbound)
-- WHERE read = false AND isoutbound = false;

View File

@@ -0,0 +1,2 @@
CREATE index idx_messages_unread_agg ON messages (read, isoutbound)
WHERE read = false AND isoutbound = false;