Sign up
Sign in
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 , but only if the underlying database engine supports batch INSERT .
ActiveRecord::Base#create
n
INSERT
Steven Li
Suraj Mishra
Follow
--
Share
i think it created separate query and not just one query
Staff Software Engineer @PayPal ( All opinions are my own and not of my employer )
Help
Status
About
Careers
Press
Blog
Privacy
Terms
Text to speech
Teams