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

scouten
I’m looking for a host for the server part of a small (personal) side project that I’m working on. It’s currently written in Node.js and ...
New
sergio
There’s a new TIOBE index report that came out that shows Elixir is still not in the top 50 used languages. It also goes on to call Elix...
New
pdgonzalez872
If this has been asked here before, please point me to where it was asked as I didn’t find it when I searched the forum. Maybe a mailing ...
New
AstonJ
If so I (and hopefully others!) might have some tips for you :slight_smile: But first, please say which area you’re finding most challen...
New
PragTob
Hello everyone, I know we had quite some threads (read through lots of them) about background job processing but it remains a hotly deba...
New
mmmrrr
Just saw that dhh announced https://hotwire.dev/ Is it just me or is this essentially live view? :smiley: Although I like the “iFrame-e...
New
fireproofsocks
I’ve been working on an Elixir project that has required a lot of scripting. I usually reach for Elixir because I like it more (and in th...
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
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement