Mnesia question

Yariv Sadan <>
Mon Jun 5 17:02:44 CEST 2006


Hi,

I have a newbie question about one-to-many relations in Mnesia: In the
Getting Started section of the Mnesia User's guide, the one-to-many
relation between "employee" and "dept" is given its own table,
"at-dep". Why is this relation expressed in a new table? Wouldn't it
be better to add a "dep_id" field to the "employee" table, with an
index on this field?

Thanks,
Yariv



More information about the erlang-questions mailing list