If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Varchar question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-06-06, 12:40
antodomnic antodomnic is offline
Registered User
 
Join Date: Mar 2003
Posts: 69
DB2 Varchar question

Hi,
We are running with db2 v8.1 Z/OS390. We have a table which has couple of integer/ char fields and four varchar fields which are more than 1000. My DBA is saying that it is good to move big varchar's ( more than two varchar's which are more than 1000 char) to a new table which will improve performance.
Any simple reason why?. As the DBA is my client I can not ask this question to him.
Any ideas.
Thanks,
Anto.
Reply With Quote
  #2 (permalink)  
Old 04-06-06, 13:20
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
If you will updating the varchar columns, then it might be better to move them. There are two concerns here: whether they will fit back on the same page if the data is nade larger because of an update, and the issue of logging the changes from the point of column that was changed to the end of the row.

Also, the more rows you can fit on a page at one time, usually this is best for perfomance. If the large varchar columns are in the same table with the other data, this will either reduce the number of rows per page, or require a larger page size. Larger page sizes have buffer pool implications. But it really depends on how often the large varchar columns are accessed compared to the other columns on the row. If they are always accessed together, then it may be better to leave them together on the same table.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On