Merge pull request #3209 from annando/followup-3196

Follow up for issue 3196: We need an index hint for performance issues
This commit is contained in:
Tobias Diekershoff 2017-03-04 09:41:00 +01:00 committed by GitHub
commit ad9303868b

View File

@ -276,7 +276,7 @@ function profile_content(App $a, $update = 0) {
$pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage'])); $pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage']));
$r = q("SELECT `thread`.`iid` AS `item_id`, `thread`.`network` AS `item_network` $r = q("SELECT `thread`.`iid` AS `item_id`, `thread`.`network` AS `item_network`
FROM `thread` FROM `thread` USE INDEX (`uid_wall_created`)
STRAIGHT_JOIN `item` ON `item`.`id` = `thread`.`iid` STRAIGHT_JOIN `item` ON `item`.`id` = `thread`.`iid`
$sql_post_table $sql_post_table
STRAIGHT_JOIN `contact` ON `contact`.`id` = `thread`.`contact-id` STRAIGHT_JOIN `contact` ON `contact`.`id` = `thread`.`contact-id`