批量插入的MySQL高插入率(InnoDB)

时间:2014-03-28 09:25:47

标签: mysql innodb bulkinsert

我最近进行了一次mysqlslap压力测试,以确定哪种类型的插入物在性能方面最佳。包含查询的文件存储在Linux系统上并从中读取。我希望有人可以通过一些见解。以下是通过mysqlslap测试获得的基准:

Time taken for Individual/Separate Insert: 5.24 seconds
Time taken for Batch Insert: 2.77 seconds
Time taken for Bulk Insert: 0.52 seconds

MySQL Version: 5.6.14 (InnoDB)
Total Records inserted on empty table: 5000
The records put together has size < 10kb
Innodb_buffer_pool_pages_flushed is disabled
Query cache turned off

是否需要对解析,Created_tmp_tablesInnodb_buffer_pool_pages_flushed或任何global variables执行任何操作?

0 个答案:

没有答案