I create a mnesia table, e.g.
mnesia:create_table(mytable, [{ram_copies, node()}, {local_content,true}],
{attributes, [col1,col2]}]).
Because local_content=true
, so that it cannot share data with other nodes, and it is a ram_copies
table.
I believe I can do the same thing with an ets table, as below.
ets:new(mytable,[named_table, public]).
I guess from performance point of view, they are similar.
I am wondering what are the differences between the two tables, from semantics point of view?