mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 18:03:42 +08:00
Revert "Load posts in batches while indexing problem posts."
This reverts commit ce57ff9fcf
.
Limit is ignored with `find_each`.
This commit is contained in:
parent
d6ec9b3582
commit
55f73fb31f
|
@ -51,7 +51,7 @@ class Search
|
|||
WHERE pd.post_id IS NULL
|
||||
)', SiteSetting.default_locale).limit(10000)
|
||||
|
||||
posts.find_each do |post|
|
||||
posts.each do |post|
|
||||
# force indexing
|
||||
post.cooked += " "
|
||||
SearchIndexer.index(post)
|
||||
|
@ -64,7 +64,7 @@ class Search
|
|||
WHERE pd.topic_id IS NULL AND p2.post_number = 1
|
||||
)', SiteSetting.default_locale).limit(10000)
|
||||
|
||||
posts.find_each do |post|
|
||||
posts.each do |post|
|
||||
# force indexing
|
||||
post.cooked += " "
|
||||
SearchIndexer.index(post)
|
||||
|
|
Loading…
Reference in New Issue
Block a user