PERF: stop reindexing and skipping deleted posts

This commit is contained in:
Sam Saffron 2019-06-04 17:53:35 +10:00
parent 74c4f926fc
commit 22abad4151
1 changed files with 1 additions and 0 deletions

View File

@ -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