mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 15:55:50 +08:00
PERF: Improve query speed when looking up direct PMs
Follow up to 5fc5a7f5ae
This commit is contained in:
parent
89efcfcf28
commit
f364317625
@ -278,7 +278,6 @@ class Search
|
|||||||
ON tau2.topic_id = tau.topic_id
|
ON tau2.topic_id = tau.topic_id
|
||||||
AND tau2.id != tau.id
|
AND tau2.id != tau.id
|
||||||
WHERE tau.user_id = :user_id
|
WHERE tau.user_id = :user_id
|
||||||
AND tau.topic_id = posts.topic_id
|
|
||||||
GROUP BY tau.topic_id
|
GROUP BY tau.topic_id
|
||||||
HAVING COUNT(*) = 1
|
HAVING COUNT(*) = 1
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user