From: Michael Vogel Date: Sat, 24 May 2014 09:01:52 +0000 (+0200) Subject: New query parameter that Speeds up the network viee when there are many contacts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=235eae66bb659152aa716b487c07d26721b5e6b8;p=friendica.git New query parameter that Speeds up the network viee when there are many contacts --- diff --git a/mod/network.php b/mod/network.php index 585c063f56..ab44073508 100644 --- a/mod/network.php +++ b/mod/network.php @@ -710,7 +710,7 @@ die("ss"); ); } else { $r = q("SELECT `thread`.`iid` AS `item_id`, `thread`.`network` AS `item_network`, `contact`.`uid` AS `contact_uid` - FROM $sql_table $sql_post_table INNER JOIN `contact` ON `contact`.`id` = `thread`.`contact-id` + FROM $sql_table $sql_post_table STRAIGHT_JOIN `contact` ON `contact`.`id` = `thread`.`contact-id` AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 WHERE `thread`.`uid` = %d AND `thread`.`visible` = 1 AND `thread`.`deleted` = 0 AND `thread`.`moderated` = 0