search

Home  >  Q&A  >  body text

mongodb > 3.0.0导入数据特别慢

使用mongodump导出后,v3.x 相比 v2.6.6 mongorestore导入速度慢了不止一个数量级 大概200万的数据(2GB) 总共只需要5分钟的样子 v3.x不知道是不是因为使用了身份验证的原因导入只有3MB/S

过去多啦不再A梦过去多啦不再A梦2789 days ago772

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-05-02 09:20:22

    I migrated and imported more than 300 GB of data. It took two days to import only a few hundred MB

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-02 09:20:22

    I have also encountered situations where data recovery is slow or stuck. I was restoring data in a replica set environment. After checking the log, I found that: if the secondary node is disconnected, when executing the above recovery command on the primary node, due to the Arbiter The heartbeat mechanism will cause the following error:

    2016-03-28T16:56:52.304+0800 I REPL     [ReplicationExecutor] Error in heartbeat request to 192.168.8.37:27017; Location18915 Failed attempt to connect to 192.168.8.37:27017; couldn't connect to server 192.168.8.37:27017 (192.168.8.37), connection attempt failed

    Then the entire progress bar got stuck.

    A situation is provided for reference only.

    reply
    0
  • Cancelreply