Database / Mnesia basics Interview questions
What is mnesia:table_info/2 used for?
mnesia:table_info(Table, Item) returns a specific, structured piece of metadata about a table
— its size, storage type, attribute list, index list, and more — suitable for use in application
code, unlike the human-readable printout from mnesia:info/0.
mnesia:table_info(person, size). %% -> 42 mnesia:table_info(person, disc_copies). %% -> [node1@host, node2@host] mnesia:table_info(person, attributes). %% -> [id, name, age]
This is the function you'd reach for programmatically — for example, checking a table's current size
before deciding whether to run a bulk migration, or verifying which nodes currently hold a copy before
performing a maintenance operation — rather than parsing the free-form text that mnesia:info/0
prints for humans in a shell.
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...
