summaryrefslogtreecommitdiff
path: root/db/096to097.sql
diff options
context:
space:
mode:
Diffstat (limited to 'db/096to097.sql')
-rw-r--r--db/096to097.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/db/096to097.sql b/db/096to097.sql
index 88cbea457..875077e8b 100644
--- a/db/096to097.sql
+++ b/db/096to097.sql
@@ -18,3 +18,6 @@ alter table reply add index reply_profile_id_modified_notice_id_idx (profile_id,
-- Needed for sorting group messages by timestamp
alter table group_inbox add index group_inbox_group_id_created_notice_id_idx (group_id, created, notice_id);
+
+-- Helps make some reverse role lookups more efficient if there's a lot of assigned accounts
+alter table profile_role add index profile_role_role_created_profile_id_idx (role, created, profile_id);