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: 1280
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: 1280
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 SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am


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