Reduce memory consumption when searching if the result is displayed as a list of topics

For the moment when there is no valid cache.
This commit is contained in:
Visman 2023-07-16 12:14:22 +07:00
parent ddc3cafbd6
commit 4a4056281f

View file

@ -281,8 +281,8 @@ class Execute extends Method
if (1 === $this->model->showAs) {
$usePIdx = true;
$selectFIdx = 'p.topic_id';
$selectFCJK = 't.id';
$selectFIdx = 'DISTINCT p.topic_id';
$selectFCJK = 'DISTINCT t.id';
$useTCJK = true;
} else {
$selectFIdx = 'sm.post_id';