Avoid looping
Posted: Tue Apr 19, 2011 1:32 pm
Hi,
we have a file with variable number of date values(each time the number of rows changes) which define the number of times the loop would run.
so, wanted to know is there an alternate way to without having to go through looping method. I am not able to think any alternate way.
The reason why I ask for the alternate way is in each loop 100's of billions of records are read and filtered based on the date values and written to different files based on the date values which is taking very long hours to finish. each time entire file needs to be read so I was looking for an alternate way where we can avoid reading the file in a loop and filter the records with just one iteration of records.
we have a file with variable number of date values(each time the number of rows changes) which define the number of times the loop would run.
so, wanted to know is there an alternate way to without having to go through looping method. I am not able to think any alternate way.
The reason why I ask for the alternate way is in each loop 100's of billions of records are read and filtered based on the date values and written to different files based on the date values which is taking very long hours to finish. each time entire file needs to be read so I was looking for an alternate way where we can avoid reading the file in a loop and filter the records with just one iteration of records.