mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 06:13:43 +01:00
Fix unnecessary condition causing seqscan when indexing (#26689)
This commit is contained in:
parent
f8d2fea2e6
commit
5694e24bbf
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue