Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8368995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:31:54+00:00 2026-06-09T13:31:54+00:00

I have used mnesia for a while now. I have to confess that i

  • 0

I have used mnesia for a while now. I have to confess that i feel like i do not exactly understand the concept of mnesia:wait_for_tables/2. Quoting the documentation here below says this:

Some applications need to wait for certain tables to be accessible in order to do
useful work. mnesia:wait_for_tables/2 hangs until all tables in the Tab List are
accessible, or until timeout is reached.

Now, for all the applications i have developed, i have had to call this when starting my backend. In the documentation above, the context of "Some applications" was not expanded well and thats where my question is.

These are my thoughts:
1. Waiting in this method means that we are loading mnesia tables from say the Disc to RAM (case of Disc_copies)
2. I personally think that if my application is consisting of only RAM (ram_copies) tables, then i do not need this method in my code. Now, I’m i right to think that if i have only disc_only_copies, i also do not need this function.
3. Also, i need this function when am loading mnesia tables from the network,especially when my tables are replicated, so my apps need to wait for mnesia on start up to make these tables ready. But this still only applies for tables of type disc_copies as why would an application running entirely on Disc or entirely in RAM need to wait and load tables ?

questions:
Help and examine my thoughts 1, 2 and 3. In general is this function only needed when dealing with mnesia table type: disc_copies since this type has something to do with data copy on disc and RAM ?

If my tables are all fragmented, (i have always called this method for each fragment to ensure mnesia makes it ready for my apps), do i have to call the method per fragment? is the method ATOMIC or Transactional if i call it within a mnesia transaction (meaning that mnesia will automatically load all the tables fragments if i specify the base table alone) ? does the table type of my fragments also matter concerning this function ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:31:56+00:00Added an answer on June 9, 2026 at 1:31 pm

    When starting mnesia, mnesia just queues up all tables that should be loaded
    from disc or from the network.

    mnesia:wait_for_tables/2 gives you a synchronization point so you don’t have to
    poll if the table(s) are ready to be used.

    If you don’t use the disc and no replication, (i.e. the schema is always empty during start)
    you don’t need to use wait_for_tables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have used Shibboleth to authenticate users. It works great. The issue is that
I have used a plugin that uses prototype js, it's working fine but the
I have used auto complete textbox previously. That auto complete works only when i
I have used geocoder in my ruby on rails application for a while but
I have used Countdown Timer like this new CountDownTimer(15000, 15) { public void onTick(long
We have used Custom List View inside that one Text View and two Edit
I have used the debug mode , under ActivityThread Perform Source not found. I
I have used whole lots of options resolving this, but it is not working.
I have used the standard user tables that ASP.net setup and I'm looking to
I have used PHP for a long time, but I just saw something like,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.