Ruby on Rails, Activerecord, MySQL, Database.
callbacks (which are almost considered an anti-pattern now) to be invoked, use delete_all or instead of invoking destroy on individual objects. Bulk Creation For those who didn’t realize that ActiveRecord::Base#create can accept an array of hashes, it can and it will run one query instead of n ,