TripleZ
V2EX  ›  数据库

向云端数据库服务较快地导入大规模数据,有没有什么好的方法?

  •  
  •   TripleZ · Jun 28, 2018 · 1343 views
    This topic created in 2876 days ago, the information mentioned may be changed or developed.

    dump 出来的 SQL 文件有 6.7 GB 大,云端数据库服务的机子配置 1 核 1G 内存 20G 数据库存储。

    有没有什么方法能比较快地将这些数据导入到云端数据库服务里?

    一共三个表,规模为 500w, 800w 和 2800w。

    dump 时候用了 --extended-insert=false,否则导入的时候会 OOM 内存溢出。

    (数据库为 MySQL )

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4415 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 05:30 · PVG 13:30 · LAX 22:30 · JFK 01:30
    ♥ Do have faith in what you're doing.