mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-10 05:37:29 +03:00
Index notifications to allow faster lookup by kind, entity id
This commit is contained in:
parent
841cfac1f8
commit
33f06d3104
@ -341,4 +341,7 @@ CREATE TABLE "notifications" (
|
||||
"response" BOOLEAN
|
||||
);
|
||||
|
||||
CREATE INDEX "index_notifications_on_recipient_id_is_read" ON "notifications" ("recipient_id", "is_read");
|
||||
CREATE INDEX
|
||||
"index_notifications_on_recipient_id_is_read_kind_entity_id"
|
||||
ON "notifications"
|
||||
("recipient_id", "is_read", "kind", "entity_id");
|
||||
|
@ -16,4 +16,7 @@ CREATE TABLE notifications (
|
||||
"response" BOOLEAN
|
||||
);
|
||||
|
||||
CREATE INDEX "index_notifications_on_recipient_id" ON "notifications" ("recipient_id");
|
||||
CREATE INDEX
|
||||
"index_notifications_on_recipient_id_is_read_kind_entity_id"
|
||||
ON "notifications"
|
||||
("recipient_id", "is_read", "kind", "entity_id");
|
||||
|
Loading…
Reference in New Issue
Block a user