Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have a remote server which will be receiving 1000's of files on daily basis. And to process those files we have different jobs. i want to move 300 or 500 files to a different folder to only process those. i have tried tfilelist -> tfilecopy by giving if condition on ((Integer)globalMap.get("tFileList_4_NB_FILE")). it is working on folder having 7000 files, its taking less than a min. but if i give source folder where files are around 250000 then its taking forever to start and run.
Can anyone suggest the right approach. to move around 500 files from 250000 files folder in a faster way. when moved 500 the job need to terminate safely
@Deepika Suryadevara, my idea is to list the all files , add a sequence id to each row, filter the rows to have only 500 rows, and then copy these 500 files, the job design looks like:
tFileList--iterate--tFixedFlowInput-main--tUnite--main--tMap--tFlowToIterate--tFileCopy
on tFixedFlowInput, output the current file path, define one field and set it's value as:
((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))
on tMap, add a var and set it's expression as:
Numeric.sequence("s1",1,1)
Regards
Shong
Hello shong,
thanks for responding, but its still taking time to start the process. looks like tfilelist is loading and then iterating files. the job shows running but nothing is happening.