Join GitHub today
change sidekiq queueing to bulk push #3536
Now, Mastodon has such a code.
If Model.pluck(:id) returned large array, this code invoke Worker.perform_async many times.
In this case, under code is better.
However, 2nd codes are hard to read.
Finally, I can write same code like this.