mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-23 16:13:15 -05:00
Fix unnecessary condition causing seqscan when indexing (#26689)
This commit is contained in:
parent
f8d2fea2e6
commit
5694e24bbf
@ -31,7 +31,7 @@ module AccountStatusesSearch
|
|||||||
def add_to_public_statuses_index!
|
def add_to_public_statuses_index!
|
||||||
return unless Chewy.enabled?
|
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)
|
PublicStatusesIndex.import(query: batch)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user