Can anyone tell me the significance of update stats?

Views: 537

Reply to This

Replies to This Discussion

Update the statistics for a temp/physical table.  Metta sql makes it database independent command.

Thanks.

Thanks for sharing your knowledge philip.

Thanks.

It makes sense to compute statistics only on tables and related indexes for which their content has changed since last statistics computation job. In Oracle database you can use some automation - it will compute stats only for changed objects or for those which have no statistics so far.

for example:

execute dbms_stats.gather_schema_stats(ownname=> 'SYSADM', method_opt=>'FOR ALL INDEXED COLUMNS SIZE AUTO', cascade=>TRUE, options=> 'GATHER AUTO');

Be carefull when computing stats on PeopleSoft temporary tables. If you compute stats on these tables when they are empty it will lead to wrong execution plan.when these tables got populated by some batch job. If the job will try to select data from such tables without recomputing statistics on them first, it might hit performance issue.

Thanks alot david for the information.it really helped.

it's a pleasure to meet you. I am USA Army personnel, i have an important thing to discus with you.
Please write me on my email (captkristen899@gmail.com)

RSS

PeopleSoft Jobs in US

Videos

  • Add Videos
  • View All

© 2024   Created by Maisam Agha.   Powered by

Badges  |  Report an Issue  |  Terms of Service