mirror of
https://github.com/friendica/friendica
synced 2024-05-24 21:24:59 +02:00
Removed some removed indexes
This commit is contained in:
parent
58c229031e
commit
6976ad4892
|
@ -636,7 +636,7 @@ function posts_from_gcontact($a, $gcontact_id) {
|
||||||
$r = q("SELECT `item`.`uri`, `item`.*, `item`.`id` AS `item_id`,
|
$r = q("SELECT `item`.`uri`, `item`.*, `item`.`id` AS `item_id`,
|
||||||
`author-name` AS `name`, `owner-avatar` AS `photo`,
|
`author-name` AS `name`, `owner-avatar` AS `photo`,
|
||||||
`owner-link` AS `url`, `owner-avatar` AS `thumb`
|
`owner-link` AS `url`, `owner-avatar` AS `thumb`
|
||||||
FROM `item` FORCE INDEX (`gcontactid_uid_created`)
|
FROM `item`
|
||||||
WHERE `gcontact-id` = %d AND $sql AND
|
WHERE `gcontact-id` = %d AND $sql AND
|
||||||
NOT `deleted` AND NOT `moderated` AND `visible`
|
NOT `deleted` AND NOT `moderated` AND `visible`
|
||||||
ORDER BY `item`.`created` DESC LIMIT %d, %d",
|
ORDER BY `item`.`created` DESC LIMIT %d, %d",
|
||||||
|
|
|
@ -121,7 +121,7 @@ function community_getitems($start, $itemspage) {
|
||||||
return(community_getpublicitems($start, $itemspage));
|
return(community_getpublicitems($start, $itemspage));
|
||||||
|
|
||||||
$r = qu("SELECT %s
|
$r = qu("SELECT %s
|
||||||
FROM `thread` FORCE INDEX (`wall_private_received`)
|
FROM `thread`
|
||||||
INNER JOIN `user` ON `user`.`uid` = `thread`.`uid` AND NOT `user`.`hidewall`
|
INNER JOIN `user` ON `user`.`uid` = `thread`.`uid` AND NOT `user`.`hidewall`
|
||||||
INNER JOIN `item` ON `item`.`id` = `thread`.`iid`
|
INNER JOIN `item` ON `item`.`id` = `thread`.`iid`
|
||||||
AND `item`.`allow_cid` = '' AND `item`.`allow_gid` = ''
|
AND `item`.`allow_cid` = '' AND `item`.`allow_gid` = ''
|
||||||
|
|
Loading…
Reference in a new issue