On Wed, Jun 11, 2008 at 4:38 PM, Daniel Luna <<a href="mailto:luna@update.uu.se">luna@update.uu.se</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Wed, 11 Jun 2008, Andreas Hillqvist wrote:<br>
> By the way, what is the cost of nested transaction in mnesia?<br>
> Would it be "better practice" to keep this archive and set operation<br>
> within only on transaction?<br>
<br>
</div>The cost of a nested transaction is proportional to the size of both of<br>
the transactions.<br>
<br>
We rewrote some code at Kreditor into using nested transactions (which is<br>
more readable), but had to throw it away. A test which usually takes<br>
about 20-30 minutes on a desktop machine wasn't finished after 10 hours<br>
(when the test was aborted).<br>
<br>
/Luna<br>
<font color="#888888">--<br>
Daniel Luna | Top reasons that I have a beard:<br>
<a href="mailto:luna@update.uu.se">luna@update.uu.se</a> | a) Laziness.<br>
<a href="http://www.update.uu.se/%7Eluna/" target="_blank">http://www.update.uu.se/~luna/</a> | b) I can.<br>
Don't look at my homepage (it stinks).| c) I can get away with it.<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br>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?<br><br>-- <br>--Hynek (Pichi) Vychodil