youngforever
V2EX  ›  问与答

Lock wait timeout exceeded; try restarting transaction

  •  
  •   youngforever · Dec 2, 2022 · 743 views
    This topic created in 1256 days ago, the information mentioned may be changed or developed.

    有个业务需要同时更新 15000 多条记录,报了这个错误,应该是 mysql 的锁超时了。这种情况我把 15000 多条记录分成几份批量执行可以解决问题嘛?这是我目前能想到的办法,或者有没有什么更好的方法?

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