You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clear clearable jobs in a loop instead of batching
ActiveRecord batching can be slow when looping over records filtered by
non-PKs. We don't care about the order of deletion here, so we can just use a loop
to delete the clearable jobs; this allows to achieve better performance
in general.
0 commit comments