I'm working on an existing Spree application (using Rails 4.2.1 and mysql), and the insertion of InventoryRecords one at a time is killing the performance (during checkout for sure).
When researching the problem, I found this as a suggestion, but it uses the copy command in PostgreSQL, which MySQL doesn't appear to have:
https://github.com/spree/spree/issues/4216#issuecomment-32556519
I've also found a few recommendations to use the activerecord-import gem, but not necessarily with Spree:
This article benchmarks a few techniques, including the aforementioned:
http://blog.elentok.com/2012/08/activerecordpostgresql-mass-insertion.html
It seems clear that using the COPY command is the most efficient, but being that I'm limited to MySQL, what's the best solution?