mnesia usage optimisation

Luke Gorrie luke@REDACTED
Thu Jul 25 19:59:05 CEST 2002


Ulf Wiger <etxuwig@REDACTED> writes:

> You could perhaps try using two ordered sets:

Nearly works :-)

In the start of the transaction, all operations are very fast, even if
the table is already big. But as a large transaction proceeds, the
'match' operations get slower. It looks like it goes O(N)ish on the
number of table updates. My access pattern is basically a chain of
read-write-read-write..

I'm guessing it's less efficient to match on the data structure for
pre-committed values?

Any other ideas?

I'm probably overdoing my Mnesia usage really :-)

Cheers,
Luke




More information about the erlang-questions mailing list