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 > How can I specify the tablespace with suitable page size for my tables? please help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-02-06, 13:48
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
How can I specify the tablespace with suitable page size for my tables? please help

I am working with db2 v8.2.2 and aix 5.2

I have a table in production with 52 mil record and average row length is 42 byte and located in tablespace with 16k page size. I found out I am going a lot of space because:
255(at most rows in a page)*42 = 10710 byte
16000-10710 = ~5000

as you see we loose 5000 byte for every 255 records and you can imagine in 52 mil records we have lost about half GIG.

I decided put this table in 4k page size tablespace but NLEVELS for index is 4
if I put in 4k the NLEVEL will be increased and it is not acceptable, please advise what should I do?

table has been runstats recently.
Reply With Quote
  #2 (permalink)  
Old 03-02-06, 14:44
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
Why not 8k? Also why are you SO concerned about NLEVEL?
__________________
mota
Reply With Quote
  #3 (permalink)  
Old 03-02-06, 14:54
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Quote:
Originally Posted by dbamota
Why not 8k? Also why are you SO concerned about NLEVEL?
1- yes 8k is possible but I should create new temp tablespace 8k and new bufferpool 8k for new tablespace. with 4k and can use default ones.
2- I have heard and read NLEVEL more than 3 is not good for performace .
am I right?
Reply With Quote
  #4 (permalink)  
Old 03-02-06, 15:20
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by M_RAS
2- I have heard and read NLEVEL more than 3 is not good for performace .
am I right?
No, NLEVEL is not that important, especially on a table that size. It would help if you could put the index in a different 4K tablespace and a different 4K bufferpool than the table data, so that the index pages will not be flushed out of memory (or at least not flushed out as often as the table pages).
__________________
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
  #5 (permalink)  
Old 03-02-06, 15:28
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Quote:
Originally Posted by Marcus_A
No, NLEVEL is not that important, especially on a table that size. It would help if you could put the index in a different 4K tablespace and a different 4K bufferpool than the table data, so that the index pages will not be flushed out of memory (or at least not flushed out as often as the table pages).
Thank you Marcus_A,
I am using SMS, so I am not able to have seperate table space for index.

so other than saving space what is the advantage/disadvantage I repalce the table to 4k table space. we have a lot of update and insert in this table during the batch jobs.
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