projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ccb607
)
Follow up for issue 3196: We need an index hint for performance issues
author
Michael
<heluecht@pirati.ca>
Sat, 4 Mar 2017 08:25:47 +0000
(08:25 +0000)
committer
Michael
<heluecht@pirati.ca>
Sat, 4 Mar 2017 08:25:47 +0000
(08:25 +0000)
mod/profile.php
patch
|
blob
|
history
diff --git
a/mod/profile.php
b/mod/profile.php
index 88d8683b8d80f5c9b5717a21f7769bd99ce107b0..cfac80ffd0d7e175e171e8a4e7eed7a333a9d99c 100644
(file)
--- a/
mod/profile.php
+++ b/
mod/profile.php
@@
-276,7
+276,7
@@
function profile_content(App $a, $update = 0) {
$pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage']));
$r = q("SELECT `thread`.`iid` AS `item_id`, `thread`.`network` AS `item_network`
- FROM `thread`
+ FROM `thread`
USE INDEX (`uid_wall_created`)
STRAIGHT_JOIN `item` ON `item`.`id` = `thread`.`iid`
$sql_post_table
STRAIGHT_JOIN `contact` ON `contact`.`id` = `thread`.`contact-id`