Overhead of mnesia:transaction

Hakan Mattsson hakan@REDACTED
Thu Aug 17 10:45:33 CEST 2006


On Wed, 16 Aug 2006, Darrin Thompson wrote:

DT> What is the overhead of executing a function in
DT> mnesia:transaction but not actually invoking any
DT> mnesia functions?

The most significant overhead is the management of the
temporary transaction store. First the transaction
coordinator (your process) sends a message to the
transaction manager which among other things creates an
ets table and replies to the coordinator. In the end of
the transaction the procedure is almost repeated when
the store is deleted. So the overhead is roughly 4
messages plus creation and deletion of an ets table.

/Håkan


More information about the erlang-questions mailing list