[erlang-questions] transactions in dets
Motiejus Jakštys
desired.mta@REDACTED
Thu Jan 16 09:10:17 CET 2014
2014.01.15 20:51, Evgeny M rašė:
>
> Well, not the most performant, but serializing all db access through
> one gen_server process
> should be the simplest solution.
>
>
> Yes, this was the first thing I thought about, but it still does not
> guarantee consistency in case of a sudden node crash
>
> Have you looked at the global module? Specifically global:trans
>
> This was the second thing i thought, I didn't know about this function
> and wrote its' analog again myself. But again, it does not
> guarantee consistency in case of node crash
>
>
Have you looked at mnesia checkpoints? If you don't mind high overhead,
this might work.
Otherwise you'll have to think about an external ACID database.
Motiejus
[1]: http://www.erlang.org/doc/apps/mnesia/Mnesia_chap7.html
More information about the erlang-questions
mailing list