aboutsummaryrefslogtreecommitdiffstats
path: root/install/schema_postgres.sql
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-09-01 21:27:59 +0200
committerMario Vavti <mario@mariovavti.com>2017-09-01 21:27:59 +0200
commite935473c5c05a40194c110fbb024825a30ca5a4b (patch)
tree0795a3d546c8294d2f14a64e2d3e206cbe4b8e05 /install/schema_postgres.sql
parent3af3b36db3ef1ab0f8b5987a13d9adca482d0952 (diff)
downloadvolse-hubzilla-e935473c5c05a40194c110fbb024825a30ca5a4b.tar.gz
volse-hubzilla-e935473c5c05a40194c110fbb024825a30ca5a4b.tar.bz2
volse-hubzilla-e935473c5c05a40194c110fbb024825a30ca5a4b.zip
add combined index for item.uid and item.item_unseen. this speeds up notifications by a magnitude.
Diffstat (limited to 'install/schema_postgres.sql')
-rw-r--r--install/schema_postgres.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql
index 0bc783692..381c262a7 100644
--- a/install/schema_postgres.sql
+++ b/install/schema_postgres.sql
@@ -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");