Commit 2689f1c1dc6a2423cc57db0609e9f857397768b4

Authored by Andrew Kane
1 parent 8df763f4

Added todo [skip ci]

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/searchkick/index.rb
... ... @@ -425,6 +425,7 @@ module Searchkick
425 425 end
426 426 else
427 427 batch_id = 1
  428 + # TODO remove any eager loading
428 429 scope = scope.only(:_id) if scope.respond_to?(:only)
429 430 each_batch(scope) do |items|
430 431 bulk_reindex_job scope, batch_id, record_ids: items.map { |i| i.id.to_s }
... ...