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

  • SEARCH
  • Home
  • 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 719297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:37:33+00:00 2026-05-14T05:37:33+00:00

I try to compare Mnesia with more traditional databases. As I understand it tables

  • 0

I try to compare Mnesia with more traditional databases.

As I understand it tables in Mnesia can be located to (see Memory consumption in Mnesia):

  • ram_copies – tables are stored in ets, so no durability as in ACID.
  • disc_copies – tables are located to ets and dets, so the table can not be bigger than the available memory? And if the table are fragmented, the database can not be bigger than the available memory?
  • disc_only_copies – tables are located dets, so no caching in memory and worse performance. And the size of the table are limited to the size of dets or the table has to be fragmented.

So if I want the performance of doing reads from RAM and the durability of writes to disc, then the size of the tables are very limited compared to a traditional RDBMS like MySQL or PostgreSQL.

I know that Mnesia aren’t meant to replace traditional RDBMS:s, but can it be used as a big RDBMS or do I have to look for another database?

The server I will use is a VPS with limited amount of memory, around 512MB, but I want good database performance.

Are disc_copies and the other types of tables in Mnesia so limited as I have understood? Can´t the database be partially on memory and a full copy on disc?

  • 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-05-14T05:37:33+00:00Added an answer on May 14, 2026 at 5:37 am

    The storage capacity of the Mnesia database for the different types of tables has been discussed in this previous SO question:

    What is the storage capacity of a Mnesia database?

    where a great answer is already available.

    Obviously (but I guess you’ve already seen it) the official doc is available at:

    http://www.erlang.org/doc/man/mnesia.html

    Also, reading from the Mnesia FAQ:

    11.5 How much data can be stored in Mnesia?

    Dets uses 32 bit integers for file
    offsets, so the largest possible
    mnesia table (for now) is 4Gb.

    In practice your machine will slow to
    a crawl way before you reach this
    limit.

    Finally, Mnesia tables can be fragmented. This is discussed here and there.

    These are my 2p.

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

Sidebar

Related Questions

I can't see any memory change in my .map file when I try to
I see a file in pending changes window. I try to compare it with
For example, I try to do something like this: - (BOOL)compare:(NSDecimal)leftOperand greaterThan:(NSDecimal)rightOperand { BOOL
Try to see which cast is faster (not necessary better): new c++ case or
Try as I might, I can't get a JNLP file to run locally (via
IF gives the wrong answer when I try to compare 2 large numbers. For
i try to compare between 2 char* identical strings,but one of them contains a
Fire up your firebug console and try this out. Compare this: $('body').data('x',1); $(thisx).remove(); console.log($('body').data('x'));
I try to compare Datetime.Now with a Datetime variable I set, using the Datetime.CompareTo()
The Microsoft C compiler warns when you try to compare two variables, and one

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.