阅读背景:

使用数据库事务防止竞争条件(Laravel)

来源:互联网 

How do I prevent such a race condition from occuring? I understand that transactions in Laravel are blocking for updates, but how do I prevent stale data from being used? Is there a way to lock the database from reading while another transaction is going on? (i.e. have the second request wait for the first request to complete?)How do I prevent such a race condition from occ




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: