V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hostigation
V2EX  ›  程序员

mysql 中一个将近 1 亿行的表,要增加一个字段会很慢吗?

  •  
  •   hostigation · 2015 年 11 月 24 日 · 2934 次点击
    这是一个创建于 3718 天前的主题,其中的信息可能已经有所发展或是发生改变。
    triffic
        1
    triffic  
       2015 年 11 月 24 日
    这个字段是索引的一部分吗
    SoloCompany
        2
    SoloCompany  
       2015 年 11 月 25 日
    https://mariadb.com/kb/en/mariadb/alter-table/

    When does ALTER TABLE copy all data?

    Here is a list of the actions that can be performed without having to copy the table: ...
    显然,增加新的列不在这个列表内
    SmiteChow
        3
    SmiteChow  
       2015 年 11 月 25 日
    无论慢不慢,请先备份
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   4021 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 00:58 · PVG 08:58 · LAX 16:58 · JFK 19:58
    ♥ Do have faith in what you're doing.