Enrico-git / WA2-EGLR

Laboratories and project of Web Application 2
0 stars 0 forks source link

Should we add Lock in UserRepo? #13

Closed Enrico-git closed 3 years ago

Enrico-git commented 3 years ago

In an example, the prof used it. It should be an extra check for avoiding inconstinces but it reduce performance.

image

image

Enrico-git commented 3 years ago

added by 4180a842850b3e2e1b863f55fe6c1e0bb86be9ad in performTransaction->WalletRepository Should be more performant Optimstic locks, but for the moment pessimistic is fine

Enrico-git commented 3 years ago

https://en.m.wikibooks.org/wiki/Java_Persistence/Locking