(Hopefully) query performance improvements

This commit is contained in:
Michael 2022-11-01 06:02:44 +00:00 committed by Hypolite Petovan
parent cdacc3f4fb
commit 1f1c2d8ca6
12 changed files with 30 additions and 25 deletions

View file

@ -82,7 +82,7 @@ class Home 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`)"]);
}
if ($request['exclude_replies']) {