I would like to know which solution is faster than the other. So, imagine we'd like to INSERT 10000 rows into a table. We have the following 2 solutions:
Solution 1: Run the INSERT query 10000 times:
INSERT INTO myTable (a,b,c) VALUES ("a","b","c"); x 10000
Solution 2: Run one INSERT query with 10000 rows at once:
INSERT INTO myTable (a,b,c) VALUES
("a","b","c"),
("a","b","c"),
("a","b","c"),
...,
("a","b","c");