Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
AJafri
Contributor
Contributor

Load a large file using tloop

I have file with million records need to load it in multiple iteration using tLoop. File have column with sequential value in it. We can load 10000 records in one iteration. I am stuck in the logic that has to be used in tLoop

Labels (3)
3 Replies
konvertilo
Partner - Contributor III
Partner - Contributor III

Hello

You need to give more context. Why do you want to use tloop ? there is a tFileInputDelimited that can read huge file, you don't have to build chunk of data.

What is the usage of the sequential value in this file ?

 

Anonymous
Not applicable

Hello,

Could you please elaborate your case with an example with input and expected output values? Which will be helpful for us to understand your situation.

Best regards

Sabrina

jeoste
Creator
Creator

Hello,

What you can do is from your tFileInput split it into X different files (of 10 000 lines as mentioned).

Then with tFileList, you can read each file and insert their content int DB. In this case no need to use tLoop, tFileList is replacing this behavior

 

More info here : https://stackoverflow.com/questions/10348570/split-file-to-more-files-in-talend