From 6ebe8db3809f3e5f1b2073e400f0ef362589dbbc Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 21 Jan 2016 10:18:00 -0800 Subject: [PATCH] Add a missing key to HarbormasterBuildArtifact Summary: Fixes T10192. This key improves some common queries and is not currently present. Test Plan: See discussion in T10192. Verified current query plan of real queries is garbage and improved by adding this key. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10192 Differential Revision: https://secure.phabricator.com/D15075 --- .../harbormaster/storage/build/HarbormasterBuildArtifact.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/applications/harbormaster/storage/build/HarbormasterBuildArtifact.php b/src/applications/harbormaster/storage/build/HarbormasterBuildArtifact.php index 0b195db88f..bb5f8382ba 100644 --- a/src/applications/harbormaster/storage/build/HarbormasterBuildArtifact.php +++ b/src/applications/harbormaster/storage/build/HarbormasterBuildArtifact.php @@ -38,6 +38,9 @@ final class HarbormasterBuildArtifact extends HarbormasterDAO 'key_garbagecollect' => array( 'columns' => array('artifactType', 'dateCreated'), ), + 'key_target' => array( + 'columns' => array('buildTargetPHID', 'artifactType'), + ), ), ) + parent::getConfiguration(); }