Mnesia and uniqueness on two keys

Samuel Rivas <>
Wed Jul 13 13:22:40 CEST 2005


Joel Reymont wrote:
> How is uniqueness ensured then?
> 
> Based on?
> 
> On Jul 13, 2005, at 8:25 AM, Samuel Rivas wrote:
> 
> >  The key is the first element of the record. The OID is the tuple  
> >with
> >the record name and the key.
 
 If the table is not a bag, when a tuple with an existing key is
inserted it replaces the old tuple. If the table is a bag then
duplicated keys are allowed.
-- 
	Samuel



More information about the erlang-questions mailing list