Re: [Perl-workflow-devel] AutoCommit in workflow
Brought to you by:
jonasbn
From: Andrew O'B. <an...@or...> - 2008-04-06 21:51:14
|
> Hello all, > Workflow defaults to AutoCommit and I was wondering if there would be > any interest in allowing this to be a passed in parameter. We could > still allow AutoCommit to be set, but we could also put in manual > commits at appropriate points in a transaction. This would result in > some warnings from DBI whan you manually ran the commits (unless we > shielded the commits with a test for AutoCommit). > > Any thoughts one way or the other? I certainly don't see any issue with allowing the AutoCommit setting to be overridden as long as the default remains the same so we don't surprise too many people :) I know that we assume AutoCommit is on by default, for example. As long at the extra commits that are added into the Workflow codebase are optionally executed depending on the AutoCommit setting then the real question then becomes one of intent: Are you intending that Workflow still commits regularly internally (which is what I think you're saying) or are you intending to never call commit in the Workflow codebase at all and leave that to the external application? Cheers, Andrew |