projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aff6a66
)
Add an index for Attention notice_ids too
author
Mikael Nordfeldth
<mmn@hethane.se>
Thu, 6 Mar 2014 13:42:29 +0000
(14:42 +0100)
committer
Mikael Nordfeldth
<mmn@hethane.se>
Thu, 6 Mar 2014 13:42:29 +0000
(14:42 +0100)
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.
classes/Attention.php
patch
|
blob
|
history
diff --git
a/classes/Attention.php
b/classes/Attention.php
index 2ba22df5b32c22b7db1113f5547cfbe6dc955715..d152ff892aa053878c58d17019822d637732c665 100644
(file)
--- 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'),
),
);