micean
V2EX  ›  问与答

mysql update 操作执行太慢是什么原因?

  •  
  •   micean · Nov 4, 2021 · 1621 views
    This topic created in 1698 days ago, the information mentioned may be changed or developed.
    语句大概是 update table set num = num + 1 where unique_id = 'uuid'
    unique_id 是 unique 索引
    总记录数 2000 多条
    并发量每秒执行 5 次左右

    执行结果太慢导致后面一条执行语句要花费几分钟,这是什么原因
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5403 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:27 · PVG 15:27 · LAX 00:27 · JFK 03:27
    ♥ Do have faith in what you're doing.