Mnemosyne

Sean Hinde Sean.Hinde@REDACTED
Tue Oct 30 18:01:28 CET 2001


> On Tue, 30 Oct 2001, Sean Hinde wrote:
> 
> >In R8B ets you can specify the number of rows which are
> >returned from a match or select call so you could do a match on
> >each record type in turn with ets:match(Tab, Pattern Max_rows)
> >where Max_rows is set to 1.
> >
> >Unfortunately mnesia doesn't support this addition to ets but I
> >dare say that might follow sometime. Meanwhile you can do ets
> >operations directly on local mnesia tables so long as you don't
> >want any transaction safety.
> 
> Actually, mnesia _does_ support select() in R8B:

OK, I should have amended the above paragraphs to read:

In R8B ets you can specify the number of rows which are
returned from a match or select call so you could do a match on
each record type in turn with ets:match(Tab, Pattern, Max_rows)
where Max_rows is set to 1.

Unfortunately mnesia doesn't support this addition to ets but I
dare say that might follow sometime. Meanwhile you can do these ets
operations directly on local mnesia tables so long as you don't
want any transaction safety.

Apologies for the lack of clarity

Sean



NOTICE AND DISCLAIMER:
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