diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-01 13:09:20 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-01 13:09:20 -0800 |
commit | 946445eea945b28d50f7409815a4913f50061958 (patch) | |
tree | 4d25d185c334899b516229c73de2ab5384a7096e /db/statusnet.sql | |
parent | e529ceee21b4fb0c18f32f7a097bce14229af42f (diff) |
Add index on group_index.notice_id, needed to pull list of target groups for inbox delivery.
Index was present on live identi.ca database but missing from master definitions: group_inbox_notice_id_idx
Diffstat (limited to 'db/statusnet.sql')
-rw-r--r-- | db/statusnet.sql | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/statusnet.sql b/db/statusnet.sql index 4aa37ce1c..3f95948e1 100644 --- a/db/statusnet.sql +++ b/db/statusnet.sql @@ -458,7 +458,8 @@ create table group_inbox ( created datetime not null comment 'date the notice was created', constraint primary key (group_id, notice_id), - index group_inbox_created_idx (created) + index group_inbox_created_idx (created), + index group_inbox_notice_id_idx (notice_id) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; |