Skip to content

Commit

Permalink
fix: exclude :eager_load data from each_batch_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgz committed Jul 19, 2024
1 parent a70d4fe commit 73c150a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/esse/active_record/collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def each
end

def each_batch_ids
dataset.select(:id).except(:includes, :preload).find_in_batches(**batch_options) do |rows|
dataset.select(:id).except(:includes, :preload, :eager_load).find_in_batches(**batch_options) do |rows|
yield(rows.map(&:id))
end
end
Expand Down

0 comments on commit 73c150a

Please sign in to comment.