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

解决选课函数中存在的竞争问题 #871

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

Deophius
Copy link
Collaborator

加了相应的unique constraint,并且使用原子的update_or_create,避免在数据库中产生两个相同的记录

加了相应的unique constraint,并且使用原子的update_or_create,避免在数据库中产生两个相同的记录
@Deophius Deophius requested a review from pkuGenuine January 20, 2025 03:16
@Deophius Deophius merged commit b794367 into Yuanpei-Intelligence:develop Jan 20, 2025
1 check passed
@Deophius Deophius deleted the course-race branch January 20, 2025 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants