Page 1 of 1

Processing in input data in batch wise

Posted: Wed Jul 15, 2009 12:24 am
by monaz
Hi Have a requirement in which i need to proceess the input records based onbatches of 100,000 records to the final output file.. This requirement is because to resolve performance issue..

Please suggest..

As it has 15month's old record so we extracting all the transaction records and limiting in the final output file to process 100,000 records per day

Posted: Wed Jul 15, 2009 1:04 am
by ArndW
Do you mean that you wish to process your input in batches of 100,000 or that you wish to parcel out your output to files limited to 100,000 lines each? If you create one output file you could use the UNIX command "split" to effect that.

Posted: Wed Jul 15, 2009 4:38 am
by monaz
ArndW wrote:Do you mean that you wish to process your input in batches of 100,000 or that you wish to parcle out your output to files limited to 100,000 lines each? If you create one output file you could use th ...
Thanks for the quick response.

i mean i wish to process your input in batches of 100,000. Could you please help me out in achieving this task

Posted: Wed Jul 15, 2009 5:27 am
by ArndW
I assume your input file is bigger than 100,000 rows. Isn't doing several runs, each processing 100,000 [different] rows to separate output files the same as doing one run and then splitting the output into chunks of 100,000? The latter would be so much easier and less susceptible to errors.

Posted: Wed Jul 15, 2009 5:56 am
by chulett
Monaz, please - why are you starting over again on the same subject as your previous post? :?