erlangets

Why to assign a name for an ETS table that is not a named_table?


What is the point providing names to ETS tables created via ets:new/2 without named_table flag? Does it make any difference what I put there?


Solution

  • With ETS table created without the named_table flag:

    This feature is useful, for example, when a code spawns identical processes or a groups of processes, running in parallel and using each their own ETS table.