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