Database / Mnesia basics Interview questions
What is the purpose of mnesia:start/0?
mnesia:start/0 boots the Mnesia application on the current node: it loads the schema created
earlier by mnesia:create_schema/1, opens any disk-based tables, and begins participating in
replication with any other already-running nodes that share tables with this one.
mnesia:start(). %% ok
It's asynchronous with respect to fully loading every table — tables with disk copies may still be
loading in the background right after start/0 returns ok. Code that needs to be sure
specific tables are ready before proceeding typically follows it with
mnesia:wait_for_tables(TableList, Timeout) to block until those tables have finished loading.
More Related questions...