forked from GNUsocial/gnu-social
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
This commit is contained in:
parent
e529ceee21
commit
946445eea9
@ -112,3 +112,6 @@ alter table queue_item_new rename to queue_item;
|
|||||||
|
|
||||||
alter table file_to_post
|
alter table file_to_post
|
||||||
add index post_id_idx (post_id);
|
add index post_id_idx (post_id);
|
||||||
|
|
||||||
|
alter table group_inbox
|
||||||
|
add index group_inbox_notice_id_idx (notice_id);
|
||||||
|
@ -458,7 +458,8 @@ create table group_inbox (
|
|||||||
created datetime not null comment 'date the notice was created',
|
created datetime not null comment 'date the notice was created',
|
||||||
|
|
||||||
constraint primary key (group_id, notice_id),
|
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;
|
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user