Read all records at once when using update with an array by allcentury · Pull Request #40682 · rails/rails
Summary Prior to this change records were loaded one by one and then updated one by one. Now records are loaded upfront and updated mostly one by one. When there are duplicate id's attributes ...