bulk_insert
bulk_insert copied to clipboard
Please don't retire - still using this in Rails 7.2!
I'm not sure why, but I was using User.insert_all(...) and it took over an hour to insert 65,000 records, then I used bulk_insert and it did 700,000 records in less than half an hour. Just thought you'd like to know.