[erlang-questions] how: mnesia: id/generator in a cluster
Christian S
chsu79@REDACTED
Wed Nov 7 09:24:49 CET 2007
2007/11/7, Dmitri Girenko <Dmitri.Girenko@REDACTED>:
> Thanks Ladislav, dirty_update_counter is exactly what I've been looking
> for.
What happens if you have distributed mnesia, and a 'sequences' table
where two nodes run dirty_update_counter at the same time?
My guess is that both could get the same number?
Thinking out loud:
If so, I guess one could use {local_content, true} on each node's
"sequence" table and make the key one have be {node(), SequenceId}.
More information about the erlang-questions
mailing list