[erlang-questions] mnesia dirty writes & race conditions
Roberto Ostinelli
roberto.ostinelli@REDACTED
Sun May 3 21:23:53 CEST 2015
> On 03/mag/2015, at 20:21, Jesper Louis Andersen <jesper.louis.andersen@REDACTED> wrote:
>
> In other words, I wouldn't expect any guarantee, in particular writing {K, V1} on node1 and {K, V2} on node2 could result in write order {K, V1} -> {K, V2} on one node and {K, V2} -> {K, V1} on another node. If you want that guarantee, you should run a transaction.
Wouldn't mnesia:async_dirty/1,2 solve this problem, while keeping dirty writes?
More information about the erlang-questions
mailing list