From: Michael Date: Sat, 4 Mar 2017 08:25:47 +0000 (+0000) Subject: Follow up for issue 3196: We need an index hint for performance issues X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8690b97c275fdda6265d11efa86abd8c669b6c8b;p=friendica.git Follow up for issue 3196: We need an index hint for performance issues --- diff --git a/mod/profile.php b/mod/profile.php index 88d8683b8d..cfac80ffd0 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -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'])); $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` $sql_post_table STRAIGHT_JOIN `contact` ON `contact`.`id` = `thread`.`contact-id`