[erlang-questions] mnesia tables with few attributes

Hakan Mattsson hakan@REDACTED
Thu Dec 13 09:51:17 CET 2007


On Thu, 13 Dec 2007, Ulf Wiger (TN/EAB) wrote:

UW> Andras Georgy Bekes skrev:
UW> >> Mnesia uses tuples with arity 2 to denote the identity
UW> >> of a record. While tuples with greater arity denotes a
UW> >> complete record including its field values.
UW> > I've read this at least 5 times, but still, I just don't understand it.
UW> > Could you clarify, please?
UW> > 
UW> > 	Georgy
UW> 
UW> I think I understand what Håkan is getting at, but
UW> going through the Mnesia API, I can't find a single
UW> function that accepts both {Tab,Key} and Record, so
UW> that there would be any chance of confusing the two.

You are making me surprised Uffe. I thought that you
both have used mnesia:traverse_backup/6 as well as well
as mnesia_backup callbacks.

/Håkan


More information about the erlang-questions mailing list