|
View previous topic :: View next topic
|
| Author |
Message |
prasun dhara
New User
Joined: 01 Mar 2008 Posts: 49 Location: kolkata
|
|
|
|
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 |
|
 |
GuyC
Senior Member
Joined: 11 Aug 2009 Posts: 1281 Location: Belgium
|
|
|
|
db2 Version?
Version and below : yes
version 9 : it depends |
|
| Back to top |
|
 |
prasun dhara
New User
Joined: 01 Mar 2008 Posts: 49 Location: kolkata
|
|
|
|
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 |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
| Back to top |
|
 |
GuyC
Senior Member
Joined: 11 Aug 2009 Posts: 1281 Location: Belgium
|
|
| Back to top |
|
 |
prasun dhara
New User
Joined: 01 Mar 2008 Posts: 49 Location: kolkata
|
|
|
|
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 |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
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 |
|
 |
prasun dhara
New User
Joined: 01 Mar 2008 Posts: 49 Location: kolkata
|
|
|
|
Thank you very much GuyC. Perfect link.
It has the reason. |
|
| Back to top |
|
 |
|
|