IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

VARCHAR field Addition and performance issues


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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
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: 6965
Location: porcelain throne

PostPosted: Tue Jul 12, 2011 4:27 pm
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
Reply with quote

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
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: 6965
Location: porcelain throne

PostPosted: Tue Jul 12, 2011 5:02 pm
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
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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To Unstring spaces in a field COBOL Programming 3
No new posts Queue application affecting performance CICS 12
No new posts Converting VARCHAR to XML DB2 1
No new posts MacKinney Batch to CICS upgrade causi... CICS 7
No new posts Help required to reset decimal points... DFSORT/ICETOOL 10
Search our Forums:


Back to Top