mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
SQL speed increase for query and search.
This commit is contained in:
parent
cebe8cb102
commit
ab67788b4e
2 changed files with 6 additions and 6 deletions
|
@ -1162,7 +1162,7 @@
|
|||
if ($conversation_id > 0)
|
||||
$sql_extra .= ' AND `item`.`parent` = '.intval($conversation_id);
|
||||
|
||||
$r = q("SELECT `item`.*, `item`.`id` AS `item_id`, `item`.`network` AS `item_network`,
|
||||
$r = q("SELECT STRAIGHT_JOIN `item`.*, `item`.`id` AS `item_id`, `item`.`network` AS `item_network`,
|
||||
`contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`rel`,
|
||||
`contact`.`network`, `contact`.`thumb`, `contact`.`dfrn-id`, `contact`.`self`,
|
||||
`contact`.`id` AS `cid`, `contact`.`uid` AS `contact-uid`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue