diff options
author | Zach Copley <zach@status.net> | 2010-03-01 14:59:54 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-03-01 14:59:54 -0800 |
commit | bb94f160bd19e82babd5224cd39ff01ad2bd0380 (patch) | |
tree | a1ac48d769277f3b624ff8f20c5ff86c915ff2e2 /db | |
parent | a5dc5f9c62aec5021b31e7f202edf2de3462b6ba (diff) | |
parent | 7bbdea10327dfd5cd059337e4f2d3d5f21d909da (diff) |
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing
* 'testing' of gitorious.org:statusnet/mainline:
Localization tweak: include doc comments marked as 'TRANS' in .po file output; these should now get automatically pulled through to the TranslateWiki interface as translator help hints.
Add index on group_index.notice_id, needed to pull list of target groups for inbox delivery.
Add index on post_id for file_to_post, needed for efficient lookups of files/urls attached to a given post.
Update pot file
Diffstat (limited to 'db')
-rw-r--r-- | db/08to09.sql | 5 | ||||
-rw-r--r-- | db/statusnet.sql | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/db/08to09.sql b/db/08to09.sql index b10e47dbc..f30572154 100644 --- a/db/08to09.sql +++ b/db/08to09.sql @@ -110,3 +110,8 @@ insert into queue_item_new (frame,transport,created,claimed) alter table queue_item rename to queue_item_old; alter table queue_item_new rename to queue_item; +alter table file_to_post + add index post_id_idx (post_id); + +alter table group_inbox + add index group_inbox_notice_id_idx (notice_id); diff --git a/db/statusnet.sql b/db/statusnet.sql index 4158f0167..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; @@ -523,7 +524,8 @@ create table file_to_post ( post_id integer comment 'id of the notice it belongs to' references notice (id), modified timestamp comment 'date this record was modified', - constraint primary key (file_id, post_id) + constraint primary key (file_id, post_id), + index post_id_idx (post_id) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; |