Tuesday, 10 July 2012

Why should we Collect Statistics on Partition

Why should we Collect Statistics on Partition?

 These are a few details on the importance of collecting stats on PARTITION keyword. Please make sure to add this for all your target tables.
  1. This is more quick method for getting information like select count(*) statements.
  2. This does not take time to collect stats and goes into cylinder headers and collects data.
For accurate information, collect statistics every time any data modification happens to that table.

COLLECT STATISTICS TA_EDW_SCDB.TXN_MASTER_RETAIL COLUMN PARTITION;
*** Update completed. One row changed.
*** Total elapsed time was 44 seconds.

HELP STATS TA_EDW_SCDB.TXN_MASTER_RETAIL COLUMN PARTITION;




Date

Time

Number of Rows

Number of Nulls

Number of All Nulls

Number of AMPs

Average AMP RPV

OneAMPSampleEst

AllAMPSampleEst

11/7/2019

5:10:19

270,155,352

0

0

25

0

270320650

270127450

11/7/2019

5:10:19

270,155,352

0

0

25

0

270320650

270127450

No comments:

Post a Comment

Please share your thoughts and let us know the topics you want covered