View previous topic :: View next topic
|
Author |
Message |
Rahul_kumar Warnings : 2 New User
Joined: 24 Jun 2006 Posts: 50
|
|
|
|
Hi,
Will there be any perfomance issue if I merge 10 files having length 10000 bytes and 10 files having length as 1000 bytes.
The files with different length have the same number of records and the actual data length is less than 1000 bytes in both type of files. |
|
Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Personally, I seriously doubt that any difference will be all that noticible. |
|
Back to top |
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1052 Location: Richmond, Virginia
|
|
|
|
I would suggest testing, but I'm tired of suggesting that, so don't test it. |
|
Back to top |
|
 |
Rahul_kumar Warnings : 2 New User
Joined: 24 Jun 2006 Posts: 50
|
|
|
|
I have tested and the performance is good in case of the less record length files.Want to know the reason? |
|
Back to top |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8701 Location: Dubuque, Iowa, USA
|
|
|
|
Because block size matters -- LRECL does not. LRECL is merely a way of dividing up the physical block stored on the device. If the block isze is 8000, you can use LRECL 80 and get 100 records from the block, or use LRECL 100 and get 80 records from the block. Which one to use? Unless you want to see some funny-looking data, use the LRECL that the file was built with. However, do not expect LRECL to have a performance impact -- it is a logical construct, not a physical construct. |
|
Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10896 Location: italy
|
|
|
|
why not do a bit of arithmetic Yourself .....
let' forget for a while about space/optimization and real device parameters
assume 1000000 records
case 1 LRECL 1000 BLKSIZE 100000 ==> 100 record x block ==> 10000 block to be read
1000000 * 1000 bytes to transfered
case 2 LRECL 10000 BLKSIZE 100000 ==> 10 records x blok ==> 100000 blocks to be read
1000000 * 10000 bytes to be transfered
the data to be transfered and data transfer time is going to be 10 times
do a bit of arithmetics and meditate on Your own |
|
Back to top |
|
 |
|