Hello,
   I have several SessionBean methods which retrieve lists os records from the 
DB. If I wan't these methods to have no transaction, how can I avoid the 
"performance penalty"  referred on the book JBossCMP (Chapter 6->Optimized 
Loading->Transactions)? 

Book Excerpts:
"The performance impact of running without a transaction will be demonstrated 
with an example
similar to Listing 6-1. This example uses an on-find optimized query that 
selects the first four
gangsters (to keep the result set small), and it is executed without a wrapper 
transaction. "

"Normally this would be the only query executed, but since this code is not 
running in a
transaction, all of the preloaded data is thrown away as soon as findAll 
returns. Then at Arrow 2
JBossCMP executes the following four queries (one for each loop): 21..."


How can I  avoid this penalty on methods without Transactions?

Thanks in advance,
     Victor Batista

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861479#3861479

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861479


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to