• Yorick Peterse's avatar
    Don't update columns in batches in a transaction · 816c4535
    Yorick Peterse authored
    This ensures that whatever locks are acquired aren't held onto until the
    end of the transaction (= after _all_ rows have been updated). Timing
    wise there's also no difference between using a transaction and not
    using one.
    816c4535
migration_helpers.rb 5.47 KB