MySQL: Fill a table within a Stored Procedure efficiently
问题 I am testing performance in a MySQL Server and filling a table with more than 200 million of records. The Stored Procedure is very slow generating the big SQL string. Any help or comment is really welcome. System Info: Database: MySQL 5.6.10 InnoDB database (test). Processor: AMD Phenom II 1090T X6 core, 3910Mhz each core. RAM: 16GB DDR3 1600Mhz CL8. HD: Windows 7 64bits SP1 in SSD, mySQL installed in SSD, logs written in mechanical hard disk. The Stored Procedure creates a INSERT sql query