[erlang-questions] mnesia tables with few attributes

Hakan Mattsson <>
Wed Dec 12 18:11:47 CET 2007


On Wed, 12 Dec 2007, Andras Georgy Bekes wrote:

AG> Is there some real reason why a table with 1 or 2 columns are 
AG> prohibited, or just because it's use is... illogical?

Mnesia uses tuples with arity 2 to denote the identity
of a record. While tuples with greater arity denotes a
complete record including its field values. Of course
it would be possible to change this convention if it
only was an internal issue, but as the convention also
is used in the API it will be left as it is.

/Håkan


More information about the erlang-questions mailing list