Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新3799条数据,导致程序卡住了 #189

Closed
cbqqkcel opened this issue Jun 25, 2023 · 6 comments
Closed

更新3799条数据,导致程序卡住了 #189

cbqqkcel opened this issue Jun 25, 2023 · 6 comments

Comments

@cbqqkcel
Copy link

image

@cbqqkcel
Copy link
Author

cpu 跑满了

@cbqqkcel
Copy link
Author

cbqqkcel commented Jun 25, 2023

update RoomSeller
set saleStatus = 1 where id in (select rsid from RoomSeller as rs, RoomSellerold as rso where rs
and rs.sellerId = rso.seler id)

执行的是这样的语句,是不是in的数据太多了。(3700条)

@cbqqkcel cbqqkcel changed the title 更新5000条数据,导致程序卡住了 更新3799条数据,导致程序卡住了 Jun 25, 2023
@codefollower
Copy link
Member

换 lealone 5.2 看看有没有问题

@codefollower
Copy link
Member

lealone 5.1 嵌套执行 sql,数据量多时有 bug,5.2 修复了。

@codefollower
Copy link
Member

我优化了 IN(SELECT) 语句,现在很快了,更新1万行记录也没问题。

@cbqqkcel
Copy link
Author

好的谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants