add combined index for item.uid and item.item_unseen. this speeds up notifications by a magnitude.

This commit is contained in:
Mario Vavti
2017-09-01 21:27:59 +02:00
parent 3af3b36db3
commit e935473c5c
7 changed files with 27 additions and 11 deletions

View File

@@ -621,6 +621,7 @@ create index "item_edited" on item ("edited");
create index "item_received" on item ("received");
create index "item_uid_commented" on item ("uid","commented");
create index "item_uid_created" on item ("uid","created");
create index "item_uid_unseen" on item ("uid","item_unseen");
create index "item_changed" on item ("changed");
create index "item_comments_closed" on item ("comments_closed");
create index "item_aid" on item ("aid");