Hi,<div><br></div><div>I use MyISAM engine thus there is no transaction. In the action_* method it call the Storm object whether to create new or get existing one from DB or to do some thing like search, etc. In each Storm object the constructor just create the object and call storm.flush() or commit() right away.</div>
<div><br></div><div>Yeas, I think I have to wrap all Storm object called from all action_* to deal with that case.</div><div><br></div><div>.. which is a bit daunting task. I will try later to see if it is better</div><div>
<br></div><div>Many thanks :-)</div><div><br></div><div><br></div><div><br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
<br>
</div>Where do your transactions begin and end? In general, that is the<br>
level at which you want to check for disconnections (or serialisation<br>
failures and maybe integrity errors), since it represents the block of<br>
work that will need to be redone.<br>
<br>
If you are handling your transactions within the action_* methods,<br>
then that is probably where you want to add your error recovery.<br>
<font color="#888888"><br>
James.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Steve Kieu<br>
</div>