Open bdewater opened 4 months ago
I think, the gem can switch to as simple activerecord-related iteration implementation as in https://github.com/sidekiq/sidekiq/blob/main/lib/sidekiq/job/iterable/active_record_enumerator.rb, given that the latest activerecord now implements all the features (like different orders, iterating over multiple columns etc).
https://github.com/rails/rails/pull/45414 introduced the
use_ranges: true
option which looks to iterate similarly toActiveRecordCursor
. If job-iteration switched over, it gets other improvements (e.g. descending order) as well.