From: Mikael Nordfeldth Date: Thu, 6 Mar 2014 13:42:29 +0000 (+0100) Subject: Add an index for Attention notice_ids too X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bed8cc48bc2baa1a295c67f34bbfbcf5344b6ec4;p=quix0rs-gnu-social.git Add an index for Attention notice_ids too Not sure if this is really needed, since notice_id and profile_id together build up the primary key. That might cause MySQL to index them anyway. --- diff --git a/classes/Attention.php b/classes/Attention.php index 2ba22df5b3..d152ff892a 100644 --- a/classes/Attention.php +++ b/classes/Attention.php @@ -43,6 +43,7 @@ class Attention extends Managed_DataObject 'attention_profile_id_fkey' => array('profile', array('profile_id' => 'id')), ), 'indexes' => array( + 'attention_notice_id_idx' => array('notice_id'), 'attention_profile_id_idx' => array('profile_id'), ), );