[erlang-questions] BEAM performance?
Wed May 24 16:38:37 CEST 2017
On Wed, May 24, 2017 at 3:19 PM, Jesper Louis Andersen <
> As for the two DB writes to the same row in short order: Mnesia uses an
> optimistic locking strategy. If two transactions write to the same row at
> the same time, both will aborted, wait a bit and try again. If you're
> unlucky, those two writes will keep interfering with each other and you
> will get lag.
No, only one transaction will be restarted.
The "oldest" one will be completed.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions