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

Add pessimistic locking extended example #10113

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

DarkGhostHunter
Copy link
Contributor

@DarkGhostHunter DarkGhostHunter commented Jan 15, 2025

I do not expect everyone to be "database masters" to wrap their head around locking, so the added example should be enough to understand when and how it should be used: avoid data races by keeping the data immutable until the transaction completes.

@taylorotwell taylorotwell merged commit 33fee97 into laravel:11.x Jan 15, 2025
@DarkGhostHunter
Copy link
Contributor Author

Yay!

I'll be on the lockout if I find more topics to expand on.

@joshmanders
Copy link
Contributor

I'll be on the lockout if I find more topics to expand on.

Not sure if that was intended or not, but I dig it.

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

Successfully merging this pull request may close these issues.

3 participants