mnesia Questions
2
Solved
I am interacting with a Remote Server. This Remote Server is in a different Time Zone. Part of the Authentication requires me to produce the:
"The number of seconds since January 1, 1970 00:00:00...
2
Solved
I have a 5 processes that insert/update the same 3 records in a mnesia table. Each of these processes does its insert/updates within a single transaction.
I have 5 other process that read these v...
1
Solved
So, I was having all kinds of trouble with CRUD operations on sets of records in one transaction. It lead me to post 2 questions here, Trouble and MoreTrouble. However, I think that both those issu...
3
Solved
HOW I WISH I HAD PHRASED MY QUESTION TO BEGIN WITH
Take a table with 26 keys, a-z and let them have integer values.
Create a process, Ouch, that does two things over and over again
In one trans...
0
Following the solutions to the question i asked recently about mnesia fragmentation, I still have a number of challenges. Consider the following scenario (The question I am asking is based on what ...
Errecart asked 9/10, 2011 at 11:26
5
Solved
Testing the Javascript Implementation of MD5 here: http://www.webtoolkit.info/javascript-md5.html gives the following output:
MD5("muzaaya") = "00e081abefbbbf72b2d5258196a9b6d0"
Going to my erl...
Frech asked 25/7, 2011 at 15:10
1
Solved
We are using Mnesia as a primary Database for a very large system. Mnesia Fragmented Tables have behaved so well over the testing period. System has got about 15 tables, each replicated across 2 si...
1
Solved
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 al...
1
When I receive such message, like this:
** WARNING ** Mnesia is overloaded: {dump_log, write_threshold}
what is approach to known which table is being used intensively? What kind of debugging do...
2
Solved
In my Quest to understanding Mnesia, I still struggle with thinking in relational terms. So I will put my struggles up here and ask for the best way to solve them.
one-to-many-relations
Say I hav...
4
Solved
I am thinking of developing a web search engine using Erlang, Mnesia & Yaws. Is it possible to make a powerful and the fastest web search engine using these software? What will it need to accom...
Crib asked 12/10, 2008 at 18:17
1
Solved
I am running two erlang nodes with a replicated mnesia database. Whenever I tried to start one of them while mnesia IS NOT Running on the other one, mnesia:wait_for_tables(?TABS,?TIMEOUT), would ha...
1
Solved
I have some big tables with disc_only_copies type.
Now I need change short node name to long but cannot do it with RAM limitation...
Can I use backup/restore database partly (table by table)?
3
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(...
4
Solved
I have a table in mnesia and I need to update individual fields in the records in it. According to Erlang : Mnesia : Updating a single field value in a row if I do something like:
update_a(Tab, Ke...
1
Solved
What is the best practice to accessing a single running mnesia node from another Erlang shell to only view data in the tables?
I tried opening two shells and pointing them to the same mnesia direc...
3
Solved
I have an mnesia table with fields say f1, f2, f3. Now if I were to select all the rows with the field value as V1, I would use mnesia:select and match specifications or a simple mnesia:match_objec...
1
Solved
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 du...
3
Solved
What DBMS do you use with Erlang ? and Why ?
2
Solved
Is there a way to do local writes and and global reads ( without replication ) using mnesia. Eg: node A writes to its local DB and node B reads from node A's DB.
Node B does not have any data of i...
3
Our Mnesia DB is running slowly and we think it should be somewhat faster.
So we need to profile it and work out what is happening.
There are a number of options that suggest themselves:
run f...
2
Solved
How do I specify a working directory for mnesia without resorting to passing the "dir" parameter on the command-line?
In other words, can I specify a "working directory" for mnesia just before cal...
2
Solved
I have an mnesia table with three fields, i, a and b, created using the record
-record(rec, {i, a,b}).
Now I insert a row into the table as:
mnesia:transaction( fun() -> mnesia:write("T", #r...
2
Solved
I am building a website using erlang, mnesia, and webmachine. Most of the documentation I have read praises the virtues of having referentially transparent functions.
The problem is, all database ...
Historied asked 20/11, 2009 at 17:35
2
Solved
Is there a way to use records directly in erl? No matter what I try, it always says it canno find the record. I am trying to do mnesia transactions and I cannot go too far without my records. Any h...
© 2022 - 2024 — McMap. All rights reserved.