Database / Mnesia basics Interview questions
What is mnesia:info/0 used for?
mnesia:info/0 prints a human-readable summary of the running Mnesia system directly to the
shell: which tables exist, their sizes, storage types, which nodes hold copies, and general system status
— a quick way to sanity-check the state of the database without writing any query code.
1> mnesia:info(). ---> Processes holding locks <--- ---> Processes waiting for locks <--- ---> Participant transactions <--- ... Table Type Size ...
It's mainly a diagnostic/debugging tool used interactively in a shell session, not something application
code calls programmatically — for structured, code-level introspection of a specific table, you'd use
mnesia:table_info/2 instead, which returns a specific piece of information you can pattern match
on or act on programmatically.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
