kostonstyle

kostonstyle

Mnesia vs others

Hi all
Ecto supports many database except Mnesia. My question is, would be a good choice to use Mnesia instead other database with Phoenix framework?

Thanks

Most Liked

hubertlepicki

hubertlepicki

oh, Mnesia is very much different sort of database than what you would usually expect from relational database. I do not think I would use as a replacement for SQL database.

SQL is generally really good for performing queries that span across table, do reporting etc. With Mnesia you will need to do slightly more legwork, and possibly process some data in your Elixir/Erlang application.

I think good use cases are stuff like storing data that needs to be accessed throughout nodes of cluster. Possibly some core data in the system that needs to be shared/accessed in performant manner. That would be use in addition to SQL database, not instead of.

We have used Mnesia for a toy project where we store statistics that are gathered in time intervals. The choice was, however, made not as replacement to SQL database, but because it was fairly easy to integrate that with an app, and allowed us to get rid of external database dependency. If we had multiple users, accounts, etc. we would not use Mnesia.

Hope that helps a bit.

AstonJ

AstonJ

Check out this thread re other DBs - some good discussion there (tho I don’t think Mnesia is mentioned)…

Where Next?

Popular in Discussions Top

andre1sk
A big advantage to Elixir is all the distributed goodness but for many applications running on multiple nodes having integrated Etcd, Zoo...
New
jeramyRR
This is an interesting article to read. Elixir’s performance, like usual, is excellent. However, it seems like the high CPU usage is co...
New
MarioFlach
Hello, I want to share a project I’ve been working on for a while: https://github.com/almightycouch/gitgud Background Some time ago I ...
New
WildYorkies
It seems that the more I read, the more I find Elixir users speaking about all the ways that Elixir is not good for x, y, and z use cases...
New
lucaong
Hello Elixir and Nerves community, I have been working for a while on an open-source embedded key-value database for Elixir, that I call...
230 13924 124
New
Qqwy
Looking at the stacks that existing large companies have used, WhatsApp internally uses Mnesia to store the messages, while Discord uses ...
New
praveenperera
How We Replaced React with Phoenix By: Thought Bot
New
eteeselink
Hi all, In the last days, two things happened: A blog post titled “They might never tell you it’s broken” made the rounds. It’s about ...
New
Crowdhailer
I’ve been hearing much about the new formatter and it’s something I have been keen to try. I find examples buy far the most illuminating...
248 19204 150
New
AstonJ
I’ve just started the Phoenix part of the utterly brilliant online course by @pragdave. On generating the Phoenix app he uses the --no-ec...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39297 209
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 126479 1222
New

We're in Beta

About us Mission Statement