June 2018
Intermediate to advanced
478 pages
10h 52m
English
With the Db2 storage optimization feature, temporary table compression is enabled by default. The Db2 optimizer considers the storage savings and the SQL statement performance before compressing the temporary data for aggregated or ORDER BY clause queries. You can use the access plan or the db2pd command to see whether the optimizer used compression for temporary tables:
db2pd -db DB1 -temptable System Temp Table Stats: Number of System Temp Tables : 43614764 Comp Eligible Sys Temps : 52 Compressed Sys Temps : 52 Total Sys Temp Bytes Stored : 5489976234667 Total Sys Temp Bytes Saved : 459808462230 Total Sys Temp Compressed Rows : 10930175985 Total Sys Temp Table Rows: : 91368293421 User Temp Table ...
Read now
Unlock full access