Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] tflowmeter & tflowmetercatcher - Insert/Update

Hi,
tflowmeter & tflowmetercatcher catch the number of rows affected after a job is run. How do I differentiate how many rows have been inserted and how many have been updated?
Thanks in advance
Rathi
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,
The tFlowMeterCatcher component  catches the processing volumetric from the  tFlowMeter  component and passes them on to the output component.    Due to rejected rows by t<DB>Output,  s ometimes it is not equal to  (number_of_rows_inserted number_of_rows_updated).
Here is the online component reference about: TalendHelpCenter:tFlowMeterCatcher
Best regards
Sabrina

View solution in original post

11 Replies
Anonymous
Not applicable
Author

Hi,
tFlowMeterCatcher will co unt the no. of records pass by the specify flow.
If you want to  count the number of rows are inserted/updated/deleted, we usually use the  Nb_LINE  g lobal variable in DB component.

when inserted item is choosen, there will be a global variale such as0683p000009MPcz.png(Integer)globalMap.get("tOracleOutput_NB_LINE_INSERTED"))


will be avaible, which counts the total number of records have been inserted into database. The same to updated, deleted items.


Best regards


Sabrina
 

Anonymous
Not applicable
Author

Hi Sabrina,
Thanks for the explanation. My job looks like this mssqlinput --> tmap -- tmysqloutput.
How do I get to use the tmysqloutput_nb_line_inserted & tmysqloutput_nb_line_updated to be stored in the database? I have the tmysqloutput with key enabled and 'Insert and Update' action on table
Please help
Thanks in advance
Rathi
avlad
Contributor
Contributor

--- 
a_vlad
Contributor
Contributor

You just need test it, for example with mysql it both variables will work if You choose "update or insert"
in other case all data will be returned as Inserted
    0683p000009MDI1.png 0683p000009MDBE.png 0683p000009MDNd.png 0683p000009MDNK.png 0683p000009MDNi.png
Anonymous
Not applicable
Author

Hi, thanks for the explanation. I did what you said and could get a hold of number of rows inserted and number of rows updated.
However, I did not use tflowmeter or tflowmetercatcher? How do I incorporate this? Or is it not necessary.
The screen shot of my job is as below
Thanks
0683p000009MDNn.png
Anonymous
Not applicable
Author

Hi,


If you just want to get inserted and updated rows in processing, the Nb_LINE  global variable is enough for you. 


The tflowmetercatcher component should catch records processed by each flow. 


Best regards


Sabrina

Anonymous
Not applicable
Author

Ok. So, tflowmetercatcher contains the sum (number_of_rows_inserted + number_of_rows_updated)?
Anonymous
Not applicable
Author

Hi,
The tFlowMeterCatcher component  catches the processing volumetric from the  tFlowMeter  component and passes them on to the output component.    Due to rejected rows by t<DB>Output,  s ometimes it is not equal to  (number_of_rows_inserted number_of_rows_updated).
Here is the online component reference about: TalendHelpCenter:tFlowMeterCatcher
Best regards
Sabrina
Anonymous
Not applicable
Author

Thanks Sabrina. I understand now