Re: Cayenne and transactions

2012-02-07 Thread Daniel Scheibe
2012/2/7 Andrus Adamchik > This thread is pretty long, so I am not sure if I missed that suggestion, > but manual transactions would allow you to wrap multiple commitChanges > calls, allowing JVM to split commits and limit memory. Essentially you > start a manual transaction, binding it to the cu

Re: Cayenne and transactions

2012-02-07 Thread Andrus Adamchik
This thread is pretty long, so I am not sure if I missed that suggestion, but manual transactions would allow you to wrap multiple commitChanges calls, allowing JVM to split commits and limit memory. Essentially you start a manual transaction, binding it to the current thread, then do as many co

Re: Cayenne and transactions

2012-02-07 Thread Daniel Scheibe
2012/2/7 Aristedes Maniatis > On 7/02/12 7:07 AM, Daniel Scheibe wrote: > >> >> >> Am 06.02.2012 00:21, schrieb Aristedes Maniatis: >> >>> On 6/02/12 9:48 AM, Daniel Scheibe wrote: >>> It's causing me an out of memory / permgen space exception since (from what i can tell) Cayenne is kee

Re: Cayenne and transactions

2012-02-06 Thread Aristedes Maniatis
On 7/02/12 7:07 AM, Daniel Scheibe wrote: Am 06.02.2012 00:21, schrieb Aristedes Maniatis: On 6/02/12 9:48 AM, Daniel Scheibe wrote: It's causing me an out of memory / permgen space exception since (from what i can tell) Cayenne is keeping all the records im memory until the commitChanges() c

Re: Cayenne and transactions

2012-02-06 Thread Daniel Scheibe
Am 06.02.2012 00:21, schrieb Aristedes Maniatis: On 6/02/12 9:48 AM, Daniel Scheibe wrote: It's causing me an out of memory / permgen space exception since (from what i can tell) Cayenne is keeping all the records im memory until the commitChanges() call. Am 05.02.2012 23:32, schrieb Aristede

Re: Cayenne and transactions

2012-02-05 Thread Aristedes Maniatis
On 6/02/12 9:48 AM, Daniel Scheibe wrote: It's causing me an out of memory / permgen space exception since (from what i can tell) Cayenne is keeping all the records im memory until the commitChanges() call. Am 05.02.2012 23:32, schrieb Aristedes Maniatis: On 6/02/12 7:26 AM, Daniel Scheibe wr

Re: Cayenne and transactions

2012-02-05 Thread Daniel Scheibe
It's causing me an out of memory / permgen space exception since (from what i can tell) Cayenne is keeping all the records im memory until the commitChanges() call. Am 05.02.2012 23:32, schrieb Aristedes Maniatis: On 6/02/12 7:26 AM, Daniel Scheibe wrote: Thanks Ari, i'm trying to store info

Re: Cayenne and transactions

2012-02-05 Thread Aristedes Maniatis
On 6/02/12 7:26 AM, Daniel Scheibe wrote: Thanks Ari, i'm trying to store information about the content of archives (ZIP and RAR) inside a database table. They usually consist of a few hundred up to 20-30k thousand entries and i would like to keep this inside a transaction either suceeding or

Re: Cayenne and transactions

2012-02-05 Thread Daniel Scheibe
Thanks Ari, i'm trying to store information about the content of archives (ZIP and RAR) inside a database table. They usually consist of a few hundred up to 20-30k thousand entries and i would like to keep this inside a transaction either suceeding or failing in a whole for a single archive.

Re: Cayenne and transactions

2012-02-05 Thread Aristedes Maniatis
On 5/02/12 10:11 PM, Daniel Scheibe wrote: Hi guys, i'm trying to figure out how Cayenne is handling transactions in regards of when data is transferred to the database. I am trying to get some large transactions (many small records or a few very large records) working and so far haven't had

Cayenne and transactions

2012-02-05 Thread Daniel Scheibe
Hi guys, i'm trying to figure out how Cayenne is handling transactions in regards of when data is transferred to the database. I am trying to get some large transactions (many small records or a few very large records) working and so far haven't had luck. If i understand correcly, Cayenne is