Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Riga
Contributor
Contributor

Iterate through rows and on SubJobOk insert in SQL table

Hi,

I have a job that retrieves the data from a SQL table (tDBInput) and it iterates through the rows (tFlowIterate) to modify the data by using a code routine in tJavaRow. Once the data is modified, each row is then inserted into an SQL table inside a different database (tDBOutput).

 

When running the job, I found that it is taking a long time to insert each row. Is there a way to store the modified rows in a temporary table/Hash table udring the iteration, and on SubJobOk insert all rows in the table at one go ?

RG

Labels (3)
1 Solution

Accepted Solutions
gjeremy1617088143
Creator III
Creator III

Hi , in your case you can iterate on a buffer.( see tbuffer component or thash component). And then when all your row are iterated Send all the buffer in the tdboutput.

View solution in original post

3 Replies
gjeremy1617088143
Creator III
Creator III

Hi , in your case you can iterate on a buffer.( see tbuffer component or thash component). And then when all your row are iterated Send all the buffer in the tdboutput.

Riga
Contributor
Contributor
Author

I used the tbuffer component and it worked like a charm. The job is much faster now.

 

Thanks for your help.