Questions tagged [mnesia]

A distributed DataBase Management System used in Erlang applications.

Mnesia is a distributed DataBase Management System (DBMS), appropriate for telecommunications applications and other Erlang applications which require continuous operation and exhibit soft real-time properties.

414 questions
5
votes
1 answer

mnesia:wait_for_tables/2 , do i really understand it?

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…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
5
votes
5 answers

Erlang and JavaScript MD5 Digest match

Testing the Javascript Implementation of MD5 here: http://www.webtoolkit.info/javascript-md5.html gives the following output: MD5("muzaaya") = "00e081abefbbbf72b2d5258196a9b6d0" Going to my erlang shell, and calculating the MD5 of the same value i…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
5
votes
1 answer

Where can I find Mnesia source code?

I've seen in a lot of documents that Mnesia has been open sourced by Ericsson, but straightforward googling didn't help me to find the repository with the code... Is Mnesia still open-source at all?
Vasil Remeniuk
  • 20,519
  • 6
  • 71
  • 81
5
votes
1 answer

Mnesia Clustering

If I am clustering 2 nodes together, from my experimenting and reading up online I understand that Node A will be like a "master" node and Node B will copy the tables over if I want them to. (Otherwise it will just access them remotely.) What…
ewindsor
  • 885
  • 10
  • 24
5
votes
4 answers

How to ensure fast startup times of mnesia

Erlang with mnesia/dets is famous for it slow startup times after a crash. Basically the same issue as with fsck on older filesystems. But I also experience slow startup times after regular shutdowns: about 8 Minutes for 250 MB on-disk data on a…
max
  • 29,122
  • 12
  • 52
  • 79
5
votes
3 answers

erlang mnesia - illegal record info

I am trying to have a function that ensures the table I need is already created and if not to create it. Here's the sample: ensure_table_exists(Table, MnesiaTables, Nodes) -> case lists:member(Table, MnesiaTables) of true -> …
hyperboreean
  • 8,273
  • 12
  • 61
  • 97
5
votes
2 answers

How to read all the records of mnesia database in erlang?

I ma new in erlang and I need to do some operations for all records I get from mnesia database. Result = mnesia:dirty_read(mydatabase, {key1, key2}), case Result of [] -> ?DEBUG("No such record found", []); …
Besat
  • 1,428
  • 13
  • 27
5
votes
1 answer

Erlang: create a disc schema

If an Erlang application, myapp, requires mnesia to run, then mnesia should be included in its application resource file, under key applications, so that if myapp is started, mnesia would get started automatically - it's node type by default is…
Not an ID
  • 2,579
  • 2
  • 21
  • 28
5
votes
2 answers

Stopping of Erlang app hangs when mnesia stopped from within the program

I've run into a problem where I cannot stop mnesia within my program without causing the app to hang. I'm presently doing prototyping of mnesia within my erlang app. In my jaus_app.erl file the start() calls: {atomic, ok} =…
Ken Robinson
  • 153
  • 2
  • 5
5
votes
2 answers

How to check Mnesia database of ejabberd

I want to access Mnesia database of ejabberd server, But i don't know how to read,write and update the data, Is there a way by which i can do this. Can i change Database to MySQL rather than Mnesia. I have tried this {odbc_server, {mysql,…
Hemant Sharma
  • 514
  • 6
  • 17
5
votes
3 answers

Erlang: Mnesia or Mysql?

What DBMS do you use with Erlang ? and Why ?
xRobot
  • 25,579
  • 69
  • 184
  • 304
5
votes
1 answer

What is Mnesia replication strategy?

What strategy does Mnesia use to define which nodes will store replicas of particular table? Can I force Mnesia to use specific number of replicas for each table? Can this number be changed dynamically? Are there any sources (besides the source…
citxx
  • 2,525
  • 17
  • 40
5
votes
1 answer

What is the difference between "raw" dirty operations, and dirty operations within mnesia:async_transaction

What is the difference between a series of mnesia:dirty_ commands executed within a function passed to mnesia:async_dirty() and those very same transactions executed "raw"? I.e., is there any difference between doing: mnesia:dirty_write({table,…
Jr0
  • 2,131
  • 13
  • 23
5
votes
1 answer

Better understanding how to work/balance mnesia's transactional/ACID capabilities

I am still trying to deeply understand what one can do with Mnesia, and answers to these two questions would greatly help. 1) What happens if one process does an atomic transaction with respect to Record X while some other process does a dirty…
Jr0
  • 2,131
  • 13
  • 23
5
votes
1 answer

Web server tolerance to high client poll rate: Cowboy vs. Yaws web servers

I have been building a real-time notification system. It’s part of a web application, but events have to be seen as soon as they occur. Long polling was not an option because it would be expensive for the web server to hold on to connections when no…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86