summaryrefslogtreecommitdiff
path: root/db/096to097.sql
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-12-17 16:22:26 -0800
committerBrion Vibber <brion@pobox.com>2010-12-17 16:22:26 -0800
commit5300d657cc881a1e8dba59498c90098930029d68 (patch)
treedb760b39426ad01df81b6a0f8029448bb75b8886 /db/096to097.sql
parentc0669969f28f957d13ad39cdd5ec01509ed47aac (diff)
Sort indexing fix for profile sidebar: add group_member_profile_id_created_idx to group_member table, streamlines sorting of your group memberships in the sidebar
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 875077e8b..209a3a881 100644
--- a/db/096to097.sql
+++ b/db/096to097.sql
@@ -21,3 +21,6 @@ alter table group_inbox add index group_inbox_group_id_created_notice_id_idx (gr
-- 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);
+
+-- Fix for sorting a user's group memberships by order joined
+alter table group_member add index group_member_profile_id_created_idx (profile_id, created);