Win1064位下mysql插入百万行数据耗时问题

performance - Inserting 1 Million records is taking too much time MYSQL - Stack Overflow
https://stackoverflow.com/questions/33820331/inserting-1-million-records-is-taking-too-much-time-mysql

mysql插入1百万行记录,表结构简单,16G,8核,耗时:6到 7小时。

 

Ask TOM "How to Update millions or records in a table"
https://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:6407993912330

Inserting about a billion rows in one table in about 4 hours
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b1476847-7897-465d-b392-bf5ca67f8ffb/inserting-about-a-billion-rows-in-one-table-in-about-4-hours

从s ... |中一次插入/选择一百万行 Oracle社区
https://community.oracle.com/thread/2460632

 

Windows10 4core 25GHz 16G

插入花了超过4小时,

在Centos上花了约20分钟

可能存在如下的坑:

max_binlog_stmt_cache_size

如果一个事务中的非事务性的语句需要大于这个数量的更多的内存,服务器会产生报错。最低值是4096 ,在32位平台最大和默认值是4GB。在64位平台最大和默认值是416EB(艾字节)。

Note

Prior to MySQL 5.6.7, 64-bit Windows platforms truncated the stored value for this variable to 4G, even when it was set to a greater value (Bug #13961678).

转载于:https://www.cnblogs.com/rgqancy/p/10276232.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值