1
ThisDay 2015 年 8 月 27 日
把索引删了,手工建立另外的索引表
|
2
realpg PRO 三亿还不分表……
|
3
jnduan 2015 年 8 月 27 日
mysql> SHOW GLOBAL VARIABLES LIKE 'innodb_flush_log%';
+--------------------------------+-------+ | Variable_name | Value | +--------------------------------+-------+ | innodb_flush_log_at_trx_commit | 1 | +--------------------------------+-------+ 1 row in set (0.00 sec ) 查看 innodb_flush_log_at_trx_commit 参数为 1 , 临时修改为 2 : set global innodb_flush_log_at_trx_commit=2; 插入性能得到明显提升。 为确保数据完整,可以在导入完成后将上述参数改回 1 。 |
4
zsmjcnm 2015 年 8 月 27 日
你的 INSERT 语句是什么?你的表结构是什么?你的机器配置是什么?
|
5
mahone3297 2015 年 8 月 27 日
可能需要分表。
|
6
invite 2015 年 8 月 28 日
索引多大?
|