Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Query Regarding performance improvement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Rahul_kumar
Warnings : 2

New User


Joined: 24 Jun 2006
Posts: 50

PostPosted: Wed Dec 08, 2010 12:19 pm    Post subject: Query Regarding performance improvement
Reply with quote

Hi,

In an existing code which I am modifying I can see an unnecessary column being fetched from the table and is being updated without any processing which I feel is an overhead since there are n no. of records which will be fetched and later updated.So ,I need to remove that unnecessary column which is being fetched but want to know how much performance it can improve in case a justification is required from my end for this change.Can anyone please help.

Thanks,
rahul
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Wed Dec 08, 2010 1:48 pm    Post subject:
Reply with quote

why a performance justification? from a data security perspective,
the actvities of the code is from a business perspective - incorrect.

but if you want an algorithm, this is the one that I use:

3**47(column-length-factor) - 8**21(total-row-count)
/
total-rows-retrieved * irritation-factor
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Wed Dec 08, 2010 2:02 pm    Post subject: Reply to: Query Regarding performance improvement
Reply with quote

the wisest thing would be to ask inside Your organization about ...
CODE CLEANUP policy

it has nothing to do with the performance yet.

maybe the preceding revision of the program was really updating those columns
and in order not to break the overall logic the IO was left there

better ask!
Back to top
View user's profile Send private message
Rahul_kumar
Warnings : 2

New User


Joined: 24 Jun 2006
Posts: 50

PostPosted: Wed Dec 08, 2010 3:11 pm    Post subject:
Reply with quote

hmm..better not to do anything with the existing logic

Thanks for the suggestions!!
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2442
Location: Netherlands, Amstelveen

PostPosted: Wed Dec 08, 2010 3:25 pm    Post subject:
Reply with quote

Just remove it. If another program uses that column it will go down and
then you know the column was not there for fun.
Ok, you will have to do some explanation to some people.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Dec 08, 2010 8:56 pm    Post subject:
Reply with quote

Quote:
3**47(column-length-factor) - 8**21(total-row-count)
/
total-rows-retrieved * irritation-factor
Is the irritation-factor a universal-constant, like, Universal Gravitational Constant (G) - or it's varaible? And I'd wonder if it is part of denominator... icon_lol.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts CONTIG for performance? JPVRoff JCL & VSAM 8 Fri Jun 09, 2017 8:39 am
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us