diff options
author | Brion Vibber <brion@pobox.com> | 2010-12-17 16:22:26 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-12-17 16:22:26 -0800 |
commit | 5300d657cc881a1e8dba59498c90098930029d68 (patch) | |
tree | db760b39426ad01df81b6a0f8029448bb75b8886 /db/statusnet.sql | |
parent | c0669969f28f957d13ad39cdd5ec01509ed47aac (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/statusnet.sql')
-rw-r--r-- | db/statusnet.sql | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/db/statusnet.sql b/db/statusnet.sql index 0c1697a7e..4a24d016a 100644 --- a/db/statusnet.sql +++ b/db/statusnet.sql @@ -463,7 +463,10 @@ create table group_member ( constraint primary key (group_id, profile_id), index group_member_profile_id_idx (profile_id), - index group_member_created_idx (created) + index group_member_created_idx (created), + + -- To pull up a list of someone's groups in order joined + index group_member_profile_id_created_idx (profile_id, created) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; |