by MELERIX » Sat Jan 04, 2014 9:26 pm
RomCenter wrote:And how do you insert a 'huge amount of roms at once' ?
There is no sql command to batch import.
I already do an uncommited load to speed up things.
well, here is an example for MySQL...
fast insert
Code: Select all
INSERT INTO `table1` VALUES
(a, b, c, d),
(e, f, g, h),
(w, x, y, z);
slow insert
Code: Select all
INSERT INTO `table1` VALUES (a, b, c, d);
INSERT INTO `table1` VALUES (e, f, g, h);
INSERT INTO `table1` VALUES (w, x, y, z);
[quote="RomCenter"]And how do you insert a 'huge amount of roms at once' ?
There is no sql command to batch import.
I already do an uncommited load to speed up things.[/quote]
well, here is an example for MySQL...
[u][b]fast insert[/b][/u]
[code]INSERT INTO `table1` VALUES
(a, b, c, d),
(e, f, g, h),
(w, x, y, z);[/code]
[u][b]slow insert[/b][/u]
[code]INSERT INTO `table1` VALUES (a, b, c, d);
INSERT INTO `table1` VALUES (e, f, g, h);
INSERT INTO `table1` VALUES (w, x, y, z);[/code]