• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » dynamically set the 'Action on data' in tMysqlOutput

#1 2010-01-28 18:37:17

saladspoon
Member
Registered: 2009-12-10
Posts: 47

dynamically set the 'Action on data' in tMysqlOutput

Hi,

I am wondering in the tMysqlOutput,  if we can dynamically set the 'Action on data' to either insert or something else depending on some flag - basically making that field a variable. 

My use case is this:

For the initial run, I want to use just the insert operation since the table is initially empty (I find that doing update else insert takes considerably longer time than straight insert operation).  This makes a difference when the volume of data, especially the initial run is huge.

I know there are ways to go about that.  For example, one job doing insert, another doing update else insert depending on a flag.  Or having 2 outputs in the tmap and stream to different tMysqlOutput based on flag.  However, they require maintenance on additional objects that are virtually the same except at the insert/update operation.

Thanks
Sarah

Offline

#2 2010-01-29 16:32:58

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

Re: dynamically set the 'Action on data' in tMysqlOutput

Hello Sarah
It is impossible to set dynamically the action on data, it must be choosed at the design time. The examples you list are the proper solutions so far.

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

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » dynamically set the 'Action on data' in tMysqlOutput

Board footer

Powered by FluxBB