Fix unnecessary condition causing seqscan when indexing (#26689)
parent
a0373d049d
commit
4456f65da4
|
@ -31,7 +31,7 @@ module AccountStatusesSearch
|
|||
def add_to_public_statuses_index!
|
||||
return unless Chewy.enabled?
|
||||
|
||||
statuses.indexable.find_in_batches do |batch|
|
||||
statuses.without_reblogs.where(visibility: :public).find_in_batches do |batch|
|
||||
PublicStatusesIndex.import(query: batch)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue