mirror of
https://github.com/friendica/friendica
synced 2025-04-24 12:30:10 +00:00
(Hopefully) query performance improvements
This commit is contained in:
parent
cdacc3f4fb
commit
1f1c2d8ca6
12 changed files with 30 additions and 25 deletions
|
@ -91,7 +91,7 @@ class ListTimeline extends BaseApi
|
|||
}
|
||||
|
||||
if ($request['remote']) {
|
||||
$condition = DBA::mergeConditions($condition, ["NOT `uri-id` IN (SELECT `uri-id` FROM `post-user` WHERE `origin`)"]);
|
||||
$condition = DBA::mergeConditions($condition, ["NOT `uri-id` IN (SELECT `uri-id` FROM `post-user` WHERE `origin` AND `post-user`.`uri-id` = `post-user-view`.`uri-id`)"]);
|
||||
}
|
||||
|
||||
$items = Post::selectForUser($uid, ['uri-id'], $condition, $params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue