1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 19:40:55 +01:00

Add an index to the story notification table

Summary: Fixes T8433. Add an index to the `phabricator_feed.feed_storynotification` table. Primarily, this speeds up object destruction.

Test Plan: Ran `./bin/storage upgrade` and saw the migration apply cleanly.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T8433

Differential Revision: https://secure.phabricator.com/D13164
This commit is contained in:
Joshua Spence 2015-06-08 11:28:39 +10:00
parent b6e2f0087e
commit 7eac4865ab

View file

@ -25,6 +25,9 @@ final class PhabricatorFeedStoryNotification extends PhabricatorFeedDAO {
'userPHID_2' => array(
'columns' => array('userPHID', 'hasViewed', 'primaryObjectPHID'),
),
'key_object' => array(
'columns' => array('primaryObjectPHID'),
),
),
) + parent::getConfiguration();
}