From 5edc498d41742664fbbf10a0129e56119812c5df Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 10 Feb 2019 06:37:31 +0000 Subject: [PATCH] Improve speed on local community page --- mod/community.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/community.php b/mod/community.php index 3c621f4261..79f3ae9c3a 100644 --- a/mod/community.php +++ b/mod/community.php @@ -219,9 +219,9 @@ function community_getitems($start, $itemspage, $content, $accounttype) } $r = DBA::p("SELECT `item`.`uri`, `author`.`url` AS `author-link` FROM `thread` - INNER JOIN `user` ON `user`.`uid` = `thread`.`uid` AND NOT `user`.`hidewall` - INNER JOIN `item` ON `item`.`id` = `thread`.`iid` - INNER JOIN `contact` AS `author` ON `author`.`id`=`item`.`author-id` + STRAIGHT_JOIN `user` ON `user`.`uid` = `thread`.`uid` AND NOT `user`.`hidewall` + STRAIGHT_JOIN `item` ON `item`.`id` = `thread`.`iid` + STRAIGHT_JOIN `contact` AS `author` ON `author`.`id`=`item`.`author-id` WHERE `thread`.`visible` AND NOT `thread`.`deleted` AND NOT `thread`.`moderated` AND NOT `thread`.`private` AND `thread`.`wall` AND `thread`.`origin` $sql_accounttype ORDER BY `thread`.`commented` DESC LIMIT ?, ?", $values);