楽観排他について
#841
Replies: 1 comment 3 replies
-
timestampベースの楽観的排他制御も技術的には可能ですが、数値ベースの方が効率的かつ確実なのでDomaでは数値ベースの楽観的排他制御のみを提供しています。 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
現状、楽観排他はアノテーション
@Version
を利用して、ある数字型のコラムで実現しましたが、ソースを見ると、毎回更新時、自動的に+1しています。
timestamp型のコラムでも実現すればいいかなと思います。
例えば
@VersionTime
LocalDateTime update_datetime;
更新SQLは
Beta Was this translation helpful? Give feedback.
All reactions