]> git.mxchange.org Git - friendica.git/commitdiff
Reverting a forced index. It was good for a profile with many entries - but not on...
authorMichael Vogel <icarus@dabo.de>
Sat, 12 Oct 2013 06:22:49 +0000 (08:22 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 12 Oct 2013 06:22:49 +0000 (08:22 +0200)
mod/profile.php

index c5da0ebed3689f7be1292f639f3ba9996555e478..f0f5d3623ef2320f7f077101b202b3d24b2411d6 100644 (file)
@@ -276,8 +276,10 @@ function profile_content(&$a, $update = 0) {
 
                $pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage']));
 
+               // FROM `item` FORCE INDEX (created, uid) LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
+
                $r = q("SELECT `item`.`id` AS `item_id`, `contact`.`uid` AS `contact-uid`
-                       FROM `item` FORCE INDEX (created, uid) LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
+                       FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
                        WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0
                        and `item`.`moderated` = 0 AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
                        AND `item`.`id` = `item`.`parent` AND `item`.`wall` = 1