You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I migrated from Amnesia into ecto_mnesia because I felt that it's more convenient for a Phoenix project.
So far as I looked at the code all the queries are based on matchers. Since mnesia has some of it's own mechanisms for some calls like :mnesia.read, :mnesia.index_read, etc.
At the moment I use those calls from the native Erlang module instead of Repo.get & Repo.get_by.
What's Your opinion on the matter?
I'm eager to contribute on this part if you can point me in the right direction, feel free to contact me.
Thanks!
The text was updated successfully, but these errors were encountered:
Actually, this adapter never tried to provide full Mnesia functionality (like Amnesia does). Instead, it's aim is to become drop-in replacement for small hobby projects where deploying separate DB is "too much" or tasks where your lookup time should be relatively small.
If there are some things that can be improved in current implementation - having PR would be great. But I guess it won't be easy to utilize functions other than matching because adapter itself always is receiving Ecto.Query, rather than raw Repo.get arguments. (You can improve planner to make better decisions on these cases.)
Actually, this adapter never tried to provide full Mnesia functionality (like Amnesia does). Instead, it's aim is to become drop-in replacement for small hobby projects where deploying separate DB is "too much" or tasks where your lookup time should be relatively small.
I think this could be mentioned more clearly in the README.md
Hey,
I migrated from
Amnesia
intoecto_mnesia
because I felt that it's more convenient for a Phoenix project.So far as I looked at the code all the queries are based on matchers. Since mnesia has some of it's own mechanisms for some calls like
:mnesia.read
,:mnesia.index_read
, etc.At the moment I use those calls from the native Erlang module instead of
Repo.get
&Repo.get_by
.What's Your opinion on the matter?
I'm eager to contribute on this part if you can point me in the right direction, feel free to contact me.
Thanks!
The text was updated successfully, but these errors were encountered: