Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

VARCHAR field Addition and performance issues

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
prasun dhara

New User


Joined: 01 Mar 2008
Posts: 49
Location: kolkata

PostPosted: Tue Jul 12, 2011 1:21 pm    Post subject: VARCHAR field Addition and performance issues
Reply with quote

Hi,
We are going to add one VARCHAR field in one of our DB2 table.So I want to know the performance issues related to it.

1) Does the position of the VARCHAR field matter for performance? Example: does adding the column end of the last column and adding the column begining of the column matter ?



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

GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1278
Location: Belgium

PostPosted: Tue Jul 12, 2011 2:29 pm    Post subject:
Reply with quote

db2 Version?
Version and below : yes
version 9 : it depends
Back to top
View user's profile Send private message
prasun dhara

New User


Joined: 01 Mar 2008
Posts: 49
Location: kolkata

PostPosted: Tue Jul 12, 2011 3:35 pm    Post subject: Reply to: VARCHAR field Addition and performance issues
Reply with quote

Hi GuyC,

It is Version 9. Can u pls briefly explain what kind of performance impact possible and which one is better ?

Thanks
Prasun
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Jul 12, 2011 4:27 pm    Post subject:
Reply with quote

Google search varchar performance general.

and found in the above search:

DB2 z/OS performance V8 & v9
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1278
Location: Belgium

PostPosted: Tue Jul 12, 2011 4:40 pm    Post subject:
Reply with quote

http://db2portal.blogspot.com/2007/06/reordered-row-format-db2-9-for-zos.html
Back to top
View user's profile Send private message
prasun dhara

New User


Joined: 01 Mar 2008
Posts: 49
Location: kolkata

PostPosted: Tue Jul 12, 2011 4:51 pm    Post subject:
Reply with quote

Thanks for the reply . I have just read the link and found it is recommended to put the VARCHAR at the end of the table but I didn't get any reason for it.

Can u please give any reason what is the reason we need to put the VARCHAR at end of the table?

Prasun
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Jul 12, 2011 5:02 pm    Post subject:
Reply with quote

well, it is not at the end of the table

once you get that concept down, and do a little thinking, you may come up with a good reason.
Back to top
View user's profile Send private message
prasun dhara

New User


Joined: 01 Mar 2008
Posts: 49
Location: kolkata

PostPosted: Tue Jul 12, 2011 5:02 pm    Post subject:
Reply with quote

Thank you very much GuyC. Perfect link.

It has the reason.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts BC, BCR, BRC, BRCL performance steve-myers PL/I & Assembler 0 Fri Dec 23, 2016 7:44 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us