#1 2012-05-23 15:42:42

neosz
New member
Registered: 2012-05-04
Posts: 8

Commit every n records

Hello,

I have a tOracleOutput that I need to commit every 10000 records updated. I saw there is an option that does it but if I connect my tOracleOutput to a tOracleConnection, the option disappeares and I can just flag automatique commit on the tOracleConnection. It seems that this kind of option commits every record updated but I would like to do it every 10000 or another value I want to choose.

Is there any way to do it?

Thanks.

Giuseppe

Offline

#2 2012-05-23 15:48:39

shong
Talend team
Registered: 2007-08-29
Posts: 10310
Website

Re: Commit every n records

Hi
The tOracleConnection and the commit every n records feature can't be used together, if you use tOracleConnection to create the DB connection, there always be a tOracleCommit to commit the change at the end of job.

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2012-05-24 12:33:03

neosz
New member
Registered: 2012-05-04
Posts: 8

Re: Commit every n records

and if I have got 3.000.000 di record to update? The buffer would get full before commiting my work and the job would break. In this case I have to avoid using a shared connection?

Thanks.

Offline

#4 2012-05-24 15:18:37

shong
Talend team
Registered: 2007-08-29
Posts: 10310
Website

Re: Commit every n records

neosz wrote:

and if I have got 3.000.000 di record to update? The buffer would get full before commiting my work and the job would break. In this case I have to avoid using a shared connection?

Thanks.

Hi
Yes, you need to create the db connection on the db output component.

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#5 2012-05-24 15:24:49

neosz
New member
Registered: 2012-05-04
Posts: 8

Re: Commit every n records

Ok.

Many thanks for the reponse smile

Offline

Board footer

Powered by FluxBB