mnesia primary key creation

Roberto Saccon rsaccon@REDACTED
Fri Jun 30 03:58:58 CEST 2006


I am wondering whether experienced erlang developers have something
better in their best-practises-treasure-box than what I have come up
with to create mnesia primary keys:

1. use "ordered_set" tables

2. use "mnesia:dirty_last(myTable)" to get the last inserted key and
increment it for a new key before inserting a new record.


regards
-- 
Roberto Saccon



More information about the erlang-questions mailing list