|
I solved the problem by wrapping the entire processing into one transaction, following "User-Defined Transaction Scope" in http://cayenne.apache.org/doc/understanding-transactions.html. // embed the whole thing in one single transaction DataDomain d = getRuntime().getDataDomain(); Transaction tx = d.createTransaction(); Transaction.bindThreadTransaction(tx); try { // do all processing here } finally { Transaction.bindThreadTransaction(null); } No need to worry about rollbacks as everything is read-only. >>> Processing time has gone down from one hour to one minute !!! Thanks to everybody, Wernke On 2012-01-25 10:01, Wernke zur Borg wrote:
This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it or any purpose or disclose its content to any person, but delete this message and any attachments from your system. RHEA System S.A. (RHEA) disclaims any and all liability if this email transmission was virus corrupted, altered or falsified. If a Non Disclosure Agreement (NDA) exists between RHEA and the receiving organization, then all contents shall be considered proprietary and covered under the NDA. |
- Performance question Wernke zur Borg
- RE: Performance question Durchholz, Joachim
- Re: Performance question Robert Zeigler
- Re: Performance question Wernke zur Borg
- Re: Performance question Wernke zur Borg
- Re: Performance question [Problem solved!] Wernke zur Borg
- RE: Performance question Durchholz, Joachim
- Re: Performance question Wernke zur Borg

