avatar
Laravel (persian)
Переслано от канала
13.02.2025 23:30
?? ?????? ?? ???? ????? ?? ??? ()lockForUpdate ?? ???? ??????? ?? ?????? Race Conditions ??????? ????.

???? ?? ?? ??? ??? ?????? ???? ?????? ?? ???? ?? ????? ???? ??? ???? ???? ???? ??? ??? ????? ????? ???? ?? ????? ??? ? ???? ????? ?????. ??? ??? ?? ?? ??? ??????? ? ???????? ???? ??????? ?????. ????? ???? ??????? status ?? ????? ?? ?????? ???? ? lockForUpdate() ???? ???? ??? ?? ??? ????? ???? ?? ???? ????? ??? ?? ??????? ?? ???.
#Laravel
@GoldenCodeir
(?? ???? ? ????? ??? ???? ????)
https://x.com/thelarrybarker/status/1889738111980118298?t=zQBNvx5a_46OyE2yF8Y4ng&s=35
X (formerly Twitter)
Larry B (@thelarrybarker) on X
#Laravel tip: Use lockForUpdate() to Prevent Race Conditions Instead of allowing multiple processes to update the same row simultaneously, lockForUpdate() prevents conflicts. Ensure only one process modifies an order at a time
? 1
32 1.7K

Обсуждение 0

Обсуждение не доступно в веб-версии. Чтобы написать комментарий, перейдите в приложение Telegram.

Обсудить в Telegram