mirror of
https://github.com/friendica/friendica
synced 2025-04-23 21:50:10 +00:00
Improved indexes, avoiding SQL errors, improving speed
This commit is contained in:
parent
d2360d14ed
commit
92a8a399de
8 changed files with 43 additions and 75 deletions
|
@ -81,7 +81,7 @@ class Profile extends BaseModule
|
|||
}
|
||||
|
||||
$items_stmt = DBA::p(
|
||||
"SELECT DISTINCT(`parent-uri-id`) AS `uri-id`, `created` FROM `post-view`
|
||||
"SELECT DISTINCT(`parent-uri-id`) AS `uri-id`, MAX(`created`), MAX(`received`) FROM `post-view`
|
||||
WHERE `uid` = ? AND NOT `contact-blocked` AND NOT `contact-pending`
|
||||
AND `visible` AND (NOT `deleted` OR `gravity` = ?)
|
||||
AND `wall` $sql_extra4 $sql_extra
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue