Skip to content

mysql和postgresql悲观锁skip locked #2017

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

Open
BigUint64Array opened this issue Apr 26, 2025 · 0 comments
Open

mysql和postgresql悲观锁skip locked #2017

BigUint64Array opened this issue Apr 26, 2025 · 0 comments

Comments

@BigUint64Array
Copy link

Feature 特性

mysql和postgresql悲观锁for update语句的skip locked后缀可以跳过被锁定的行

// c# code

简要描述原因

功能增强

// c# code

使用场景

任务队列场景,每次取一个任务跳过正在处理的任务

fsql.Select<Task>().Where(xxx).ForUpdate(skipLocked: true).ToOne();
// c# code
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

1 participant