What is collect State in Teradata ? what it use and how it
works??

Answer Posted / siri

The Optimizer plans an execution strategy for every
SQL query submitted to it. We have also seen that the
execution strategy
for any query may be subject to change depending on various
factors. For
the Optimizer to consistently choose the optimum strategy,
it must be
provided with reliable, complete, and current demographic
information
regarding all of these factors. The best way to assure that
the Optimizer
has all the information it needs to generate optimum
execution strategies
is to COLLECT STATISTICS.

-Statistics tell the Optimizer how many rows/ value there
are.
– The Optimizer uses statistics to plan the best way to
access data.
– May improve performance of complex queries and joins.
– NUSI Bit Mapping requires collected statistics.
– Helpful in accessing a column or index with uneven value
distribution.
– Stale statistics may mislead the Optimizer into poor
decisions.
– Statistics remain valid across a reconfiguration of the
system.
– COLLECT is resource intensive and should be done during
off hours.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you see a ddl for an existing table?

801


What is spool space? Why do you get spool space errors? How do trouble-shoot them?

780


What is the multi-insert?

838


How would you load a very large file in teradata in general? What utility would you use for it? Why?

887


Highlight the points of differences between the database and user in Teradata.

854


What is the meaning of Caching in Teradata?

922


What does sleep function does in fast load?

879


In a table can we use primary key in one column and in another column both unique and not null constrains.if yes how?

872


Explain vproc in teradata?

796


What is meant by a Parsing Engine?

976


What are the steps to create a data model?

835


What are the primary characteristics of the Teradata.

847


What is upsert statement in teradata?

861


Why teradata is used?

799


While creating table my dba has fallback or no fallback in his ddl. What is that?

947