youngforever
V2EX  ›  问与答

Lock wait timeout exceeded; try restarting transaction

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

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

    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2423 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 12:10 · PVG 20:10 · LAX 04:10 · JFK 07:10
    ♥ Do have faith in what you're doing.