关于批量插入的性能。
1.
insert goods(...) values(...)
insert goods_price(goods_id, level, price) values(...)
insert goods_price(goods_id, level, price) values(...)
insert goods_price(goods_id, level, price) values(...)
insert goods(...) values(...)
insert goods_price(goods_id, level, price) values(...)
insert goods_price(goods_id, level, price) values(...)
insert goods_price(goods_id, level, price) values(...)
...
2.
insert goods(...) values(...)
insert goods(...) values(...)
...
insert goods_price(goods_id, level, price) values(...)
insert goods_price(goods_id, level, price) values(...)
insert goods_price(goods_id, level, price) values(...)
insert goods_price(goods_id, level, price) values(...)
insert goods_price(goods_id, level, price) values(...)
insert goods_price(goods_id, level, price) values(...)
关于以上两种方式的性能相同或不同?哪种方式对mysql更友好?