TechTip: Buffering--Friend or Foe?
** This thread discusses the article: TechTip: Buffering--Friend or Foe? **
When adding records in a program and the Record Address Type is blank, then compiler writes out to an optimized buffer because it is told to ignore keys. When adding records in a program and the Record Address Type is K, then compiler automatically switches to non buffered. This is done because we are processing by keys. DO NOT USE FRCRATIO(1). I see some applications shipped from vendors with files set up using FRCRATIO(1). This causes a tremendous hit needless hit on performance. For example a CPYF taking 35 times longer to copy than when FRCRATIO(*NONE). This is a huge hit caused by programmer not knowing the correct solution.
Code
** This thread discusses the article: TechTip: Buffering--Friend or Foe? **
When adding records in a program and the Record Address Type is blank, then compiler writes out to an optimized buffer because it is told to ignore keys. When adding records in a program and the Record Address Type is K, then compiler automatically switches to non buffered. This is done because we are processing by keys. DO NOT USE FRCRATIO(1). I see some applications shipped from vendors with files set up using FRCRATIO(1). This causes a tremendous hit needless hit on performance. For example a CPYF taking 35 times longer to copy than when FRCRATIO(*NONE). This is a huge hit caused by programmer not knowing the correct solution.
Code
Comment