Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
billxu
Contributor
Contributor

Anyway to enable batch update in tDBOutput?

Hello,

Is there any way to enable batch update in tDBOutput?

I found that the "Batch Size" option is only available when "Action on Data" is "Delete".

Any other "Action on Data" results row based updates, this could cause serious performance issues while dealing with huge amount of data.

If there is no such way to do batch update with tDBOutput, would you please advise other approaches to achieve this?

* I am using Talend to fetch data from AS400 into MySQL.

Thank you in advance!

Bill

Labels (3)
6 Replies
Anonymous
Not applicable

Hi

I checked and found that when 'action on Data ' is Update or Delete, the 'Batch size' option is available, I am using v8.0.1.

 

Regards

Shong

billxu
Contributor
Contributor
Author

Hi Shong

 

Thank you, using v8.0.1 (TOS for DI), as well.

But "Update or Delete" is not an option in my talend... ?

0695b00000deJOwAAM.pngAny way, I want talend to not only update matched data, but also to do insertion when there is no match. Maybe "Update or Delete" cannot achieve this.

Any other ideas?

 

Best regards,

Bill

tnewbie
Creator II
Creator II

Hi,

 

There is a batch size option in tDBOutput even for non Delete Action on Data options.... I choose Update and it gives me the Batch Size option. I checked on 7.3 though

 

0695b00000deJUBAA2.png

billxu
Contributor
Contributor
Author

Hi

 

Thank you.

It seems that there is not such issue with tDBOracleOutput according to your screenshot. Unfortunately, I am dealing with MySQL database, so I have to use tDBMysqlOutput 😞

 

Best regards,

Bill

billxu
Contributor
Contributor
Author

Hi @Shicong Hong​ ,

 

FYI

I think the batch update (or insert) functionality is just not implemented for MySQL components.

After tried out every option in "Action on Data", I found that there are also "Batch Size" likely (or exactly) options for "Insert" only or "Update" only. But neither of them generate Java codes of calling PreparedStatement.executeBatch (which is commonly used for batch update).

 

I am now considering using bulk output instead of the normal output.

 

Best regards,

Bill

 

tnewbie
Creator II
Creator II

Batch Size option is there In MySQL too. You have both Batch Size and 'Commit every' options for Action on Data ='Update', I also realized that it is not available for Action = Insert or Update