Which one between sharedLock() and lockForUpdate() will allow reading from the DB and not updating the DB while another update is happening?

后端 未结 0 1726
小鲜肉
小鲜肉 2021-01-02 23:38

I have two methods running this way: Method one receives a request, it extracts the user from the request, and checks if the user exists in the database. If the user exists,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题