Suggestion: New table iterators

Sean Hinde <>
Thu Oct 19 12:54:55 CEST 2000

I'd like to add my support for iterators over ets/dets/mnesia.

At the moment writing a safe iterator over an mnesia table is not obvious if
you want to also have concurrent updates. Apart from anything else there
appears to be no guarantee that a table will not be re-hashed during the
iteration - even in a transaction.

If you want to delete stuff during the iteration it is even less obvious how
to do this safely and simply. Building a list of stuff to be deleted later
can chew up masses of memory..


This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.

More information about the erlang-questions mailing list