Hello,
In the process moving from IDS 7.31 to 9.40 and have now reached the point where I need to look at my extent sizing. I have always done this using the following query.
select substr(tabname,1,12) tab,
count(*) num_of_exts,
round(sum(pe_size)
* 2 {Systems page size in KB}
* 1.2 {Add 20% growth factor})
proposed_ext_size, {First extent size in kb}
round(sum(pe_size)
* 2 {Systems page size in KB}
* 0.2 {Estimated 20% yearly growth})
next_ext_size {Next extent size in kb}
from systabnames stn,
sysptnext sti
where
stn.partnum = sti.pe_partnum and
stn.tabname >= 'tcpaaa000000' and stn.tabname <= 'ttuzzz999999'
group by 1
having count(*) > 8
order by 2 desc, 3 desc;
However now when running this query I have noticed that indexs are also listed whereas under 7.31 only tables were listed.
The query still seems to work for sizing my table extents however it doesn't now seem to be appropriate for index extent sizing.
I found on a previous post that somebody was recommending the following formula.
(keysize+9/rowsize) * table_ext_size
When trying to write a query for this I have ran into the problem that I cannot find keysize in the sysmaster database.
Can anybody help me with a query for this or advise me on any other ways of sizing index extents.
Thanks
Neal Matthews
IT Support Analyst
ATY Automotive & Industrial Components (UK) Ltd.