From 8690b97c275fdda6265d11efa86abd8c669b6c8b Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 4 Mar 2017 08:25:47 +0000 Subject: [PATCH] Follow up for issue 3196: We need an index hint for performance issues --- mod/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`