[erlang-questions] Mnesia transactions and error handling good practices
Ulf Wiger (TN/EAB)
Wed Jun 11 18:35:05 CEST 2008
Hynek Vychodil skrev:
> On Wed, Jun 11, 2008 at 4:38 PM, Daniel Luna <
> <mailto:>> wrote:
> On Wed, 11 Jun 2008, Andreas Hillqvist wrote:
> > By the way, what is the cost of nested transaction in mnesia?
> > Would it be "better practice" to keep this archive and set operation
> > within only on transaction?
> The cost of a nested transaction is proportional to the size of both of
> the transactions.
> Just check, It means that if outer transaction is loose coupled to inner
> (not make intensive data load from inner to outer), there is no problem
> with transaction?
No, all the data from the outer transaction is copied into the inner
transaction, and all the committed data from the inner transaction
is copied back into the outer.
More information about the erlang-questions