Thank you Rikard! This is exactly what I had in mind. On Aug 18, 2005, at 5:23 PM, Rikard Johansson wrote: > Here are some code I use for sequences. It creates one mnesia table > (sequence) which can hold multiple sequences. > mnesia:dirty_update_counter is fast and atomic.