]> git.mxchange.org Git - friendica.git/commitdiff
Removed some removed indexes
authorMichael <heluecht@pirati.ca>
Fri, 6 Jan 2017 06:37:27 +0000 (06:37 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 6 Jan 2017 06:37:27 +0000 (06:37 +0000)
include/Contact.php
mod/community.php

index b1f63cbdfd883c1938a7c3d359550f0322b50fd4..ea8a5f108ad120938f464db6eaeefff55485da51 100644 (file)
@@ -636,7 +636,7 @@ function posts_from_gcontact($a, $gcontact_id) {
        $r = q("SELECT `item`.`uri`, `item`.*, `item`.`id` AS `item_id`,
                        `author-name` AS `name`, `owner-avatar` AS `photo`,
                        `owner-link` AS `url`, `owner-avatar` AS `thumb`
-               FROM `item` FORCE INDEX (`gcontactid_uid_created`)
+               FROM `item`
                WHERE `gcontact-id` = %d AND $sql AND
                        NOT `deleted` AND NOT `moderated` AND `visible`
                ORDER BY `item`.`created` DESC LIMIT %d, %d",
index d7fd2bb933ba0d70d3e0199a74ad7f83ae121793..b1b5c2fd295b3d96ff85e278a07cb939c9d49a3d 100644 (file)
@@ -121,7 +121,7 @@ function community_getitems($start, $itemspage) {
                return(community_getpublicitems($start, $itemspage));
 
        $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 `item` ON `item`.`id` = `thread`.`iid`
                AND `item`.`allow_cid` = ''  AND `item`.`allow_gid` = ''