My experience is that it’s faster to work with packages when inserting data into a MySQL database.
Thus, the parameter executes several insertion requests more slowly :
INSERT INTO my_table VALUES (1, "a");
INSERT INTO my_table VALUES (2, "b");
The parameter is faster :
INSERT INTO my_table VALUES (1, "a"), (2, "b");
source
share