]> git.mxchange.org Git - friendica.git/commitdiff
Follow up for issue 3196: We need an index hint for performance issues
authorMichael <heluecht@pirati.ca>
Sat, 4 Mar 2017 08:25:47 +0000 (08:25 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 4 Mar 2017 08:25:47 +0000 (08:25 +0000)
mod/profile.php

index 88d8683b8d80f5c9b5717a21f7769bd99ce107b0..cfac80ffd0d7e175e171e8a4e7eed7a333a9d99c 100644 (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']));
 
                $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`