mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: stop reindexing and skipping deleted posts
This commit is contained in:
@@ -119,6 +119,7 @@ module Jobs
|
||||
AND pd.post_id = posts.id
|
||||
INNER JOIN topics ON topics.id = posts.topic_id
|
||||
WHERE pd.post_id IS NULL
|
||||
AND posts.deleted_at IS NULL
|
||||
AND topics.deleted_at IS NULL
|
||||
AND posts.raw != ''
|
||||
ORDER BY posts.id DESC
|
||||
|
||||
Reference in New Issue
Block a user