Project

General

Profile

CdmTransactions » History » Revision 2

Revision 1 (Andreas Kohlbecker, 04/02/2013 09:39 AM) → Revision 2/9 (Andreas Kohlbecker, 04/02/2013 09:50 AM)

 
 # Transactions in the CDM Library - Configuration 



 ## The default propagation strategy for service classes is `Propagation.SUPPORTS`  


 With r8688 `Propagation.SUPPORTS` as been set as default propagation strategy for all service classes: 


 ~~~ 
 @Serive 
 @Transactional(readOnly = true, propagation = Propagation.SUPPORTS)  
 class ... 
 ~~~ 

 This has been only introduced to prevent early commit in Spring Web-flow. 


 In Forums and blocks the recommendation to set the propagation strategy to Propagation.SUPPORTS, this should increase the performance:  


 * http://stackoverflow.com/questions/10750445/how-to-apply-transactions-best-practice-for-read-operations-in-spring-mvc-using 

 * http://forum.springsource.org/showthread.php?61190-Propagation-Support-readOnly-true-vs-no-transactin-at-all 


 We tested the effect of setting propagation strategy to `Propagation.SUPPORTS` and could not find a significant difference. 

 see attachment:Propagation.SUPPORTS-vs-Propagation.REQUIRED.ods