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
 
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: 1281
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: 6968
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: 1281
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: 6968
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 Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts CONTIG for performance? JPVRoff JCL & VSAM 8 Fri Jun 09, 2017 8:39 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm

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