Django和数据库的同时操作
我正在Django 3系统上开发。我在后端使用MySQL。我有一个设计问题。我有一个医生和患者系统。患者已在系统中注册。医生在页面上看到患者,按下按钮并带病人。当3名医生同时打开页面时,所有人都会看到病人叫詹妮弗(Jennifer)。好吧,如果他们同时按下Get Jenifer患者按钮,会不会发生冲突?我如何防止这种情况?对于此并发操作,我该怎么办才能防止例外。
I am developing on Django 3 system. I am using mysql at backend. I have a design question. I have a system of doctors and patients. The patient is registered in the system. Doctors see the patient on their page and push a button and take patient. When 3 doctors open their pages at the same time, all of them will see the patient named Jennifer. Well, if they press the get jenifer patient button at the same time, wouldn't there be a conflict? How do I prevent this? What can i do for this concurrent operation to prevent exceptions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论