The @Atomic methods make use of a TransactionTemplate. Preparing the
arguments for the template and creating the Template object itself cost
more work than placing the logic from the template directly in the @Atomic
method. This would make it better performing, especially for very small
transactions. For larger transactions there is less overhead.
But this issue really needs to be checked with a profiler to see if there
really is a serious overhead here. This could be done by manually writing
the code and comparing it to the transactiontemplate approach
Original issue reported on code.google.com by alarmnum...@gmail.com on 2 Jun 2009 at 8:09
Original issue reported on code.google.com by
alarmnum...@gmail.com
on 2 Jun 2009 at 8:09