New query parameter that Speeds up the network viee when there are many contacts

pull/987/head
Michael Vogel 2014-05-24 11:01:52 +02:00
rodzic 5ae9c5e538
commit 235eae66bb
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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