数据库有七八百万的数据,在批量调度模块里面,直接使用 select 然后 update ,一次 select 这么多并进行更新,会造成 SQL 阻塞,这种情况下,有哪些好的方案解决呢?
![]() |
1
liprais 174 天前
直接 update 完事
|
2
gabon 173 天前 via iPhone
select id from x where id> cursor limit 100; update x set foo=bar where id in ( a,b,c );
|
![]() |
3
codingAlex OP @liprais 这样卡死的
|