[Catalyst-commits] r12368 - trunk/examples/CatalystAdvent/root/2009/pen

frew at dev.catalyst.perl.org frew at dev.catalyst.perl.org
Mon Dec 14 21:16:01 GMT 2009


Author: frew
Date: 2009-12-14 21:16:01 +0000 (Mon, 14 Dec 2009)
New Revision: 12368

Modified:
   trunk/examples/CatalystAdvent/root/2009/pen/dbic-txn.pod
Log:
Add note regarding retries


Modified: trunk/examples/CatalystAdvent/root/2009/pen/dbic-txn.pod
===================================================================
--- trunk/examples/CatalystAdvent/root/2009/pen/dbic-txn.pod	2009-12-14 21:05:43 UTC (rev 12367)
+++ trunk/examples/CatalystAdvent/root/2009/pen/dbic-txn.pod	2009-12-14 21:16:01 UTC (rev 12368)
@@ -87,7 +87,10 @@
 exception or any other means, a C<ROLLBACK> will be issued.
 
 This can be useful if you don't want to deal with catching exceptions from
-C<txn_do>.
+C<txn_do>.  Another reason you might choose to use C<txn_scope_guard> over
+C<txn_do> is that C<txn_do> will attempt to reconnect to the database and
+re-run your code if you lost your connection; C<txn_scope_guard> does not
+have this overhead.
 
 Here's the previous example using C<txn_scope_guard>:
 




More information about the Catalyst-commits mailing list