Re: avgrowcompressionration in syscat.tables not updated -
06-25-2010
, 07:12 PM
I talked to a colleague and here is his answer:
-----
The statistics retrieved from ADMIN_GET_TAB_COMPRESS_INFO are not necessarily
the same or equivalent to what RUNSTATS generates. Let me explain. The stats
that the admin function returns in REPORT mode are compression stats that are
collected only at the time the very first compression dictionary is created.
This information is stored within the table which is very different from
runstats which processes a table and then updates the catalogs accordingly.
Additionally, each invocation of runstats has the possibility of generating a
new set of stats.
Anyway, the correct data to collect is the following (this will show the 'big'
picture and allow a better understanding)
db2 "select card,
npages,
fpages,
stats_time,
pctfree,
compression,
avgrowsize,
avgcompressedrowsize,
avgcompressionratio,
pctrowscompressed,
pctpagessaved
from syscat.tables where ..... "
plus
db2 " select tabname, data_object_p_size, dictionary_size, large_rids from
table(sysproc.admin_get_tab_info('<schema>', '<name>')) "
db2 "select * from
table(sysproc.admin_get_tab_compress_info('<schema >','<tabname.>', '<exec
mode>')) "
Thanks.
-----
Please collect the output of the 3 sql statements mentioned above.
--
Helmut K. C. Tessarek
DB2 Performance and Development
/*
Thou shalt not follow the NULL pointer for chaos and madness
await thee at its end.
*/ |