micean
V2EX  ›  问与答

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

  •  
  •   micean · Nov 4, 2021 · 1635 views
    This topic created in 1704 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   ·   5992 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 02:00 · PVG 10:00 · LAX 19:00 · JFK 22:00
    ♥ Do have faith in what you're doing.