Project

General

Profile

CdmTransactions » History » Version 3

Andreas Kohlbecker, 04/02/2013 09:50 AM

1 1 Andreas Kohlbecker
2
# Transactions in the CDM Library - Configuration
3 2 Andreas Kohlbecker
4
5
6
## The default propagation strategy for service classes is `Propagation.SUPPORTS` 
7
8
9
With r8688 `Propagation.SUPPORTS` as been set as default propagation strategy for all service classes:
10
11
12
~~~
13
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS) 
14
class ...
15
~~~
16
17
This has been only introduced to prevent early commit in Spring Web-flow.
18
19
20
In Forums and blocks the recommendation to set the propagation strategy to Propagation.SUPPORTS, this should increase the performance: 
21
22
23
* http://stackoverflow.com/questions/10750445/how-to-apply-transactions-best-practice-for-read-operations-in-spring-mvc-using
24
25
* http://forum.springsource.org/showthread.php?61190-Propagation-Support-readOnly-true-vs-no-transactin-at-all
26
27
28
We tested the effect of setting propagation strategy to `Propagation.SUPPORTS` and could not find a significant difference.
29
30
see attachment:Propagation.SUPPORTS-vs-Propagation.REQUIRED.ods