[erlang-questions] Mnesia create tables best practices
Roberto Ostinelli
roberto.ostinelli@REDACTED
Sun Feb 8 19:25:17 CET 2015
> Some times, you will me using a method, where there is a file named FALLBACK.BUP. This is a "fallback" file, which will "restore" the database once the system is booted. This is also how `mnesia:create_schema/2` works, incidentally :P
>
> The beauty of this way is that your system is always in a state where it is "catching up" from a known good state. And you don't have to handle the special case of "initializing", which is completely perpendicular to your normal operation.
Thank you Jesper. That makes a lot of sense.
Can you please expand on this? Do you mean that when you boot a system you reset the db?
Best,
r.
More information about the erlang-questions
mailing list