Pls any body reply for this question.
Which circumstance does the optimizing choose a product join?
Thanks for advance

Answer Posted / ab75150

Product join occurs in 2 circumstances.

1) Your stats are out-dated
2) One table is a substantially huge and the other is very
small. In that case, optimizer identifies that is better to
replicate the smaller tables across all amps and then
complete the join.

In later case, product join is not bad. but if the stats
are outdate, better refresh the stats and go ahead with the
execution.

Incase your stats are good and still optimizer goes the
product join path, if you really want to avoid it, you may
force the optimizer not to choose it with following command
DIAGNOSTIC NOPRODJOIN ON FOR SESSION

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are tpump utility limitations?

604


What is the use of stored procedures in teradata?

575


Highlight the differences between Primary Key and Primary Index.

627


Explain the new features of teradata?

578


What is teradata? Also, list out some of the primary characteristics of teradata.

587






What is the use of having index on table?

588


Did you write stored procedures in teradata?

628


What is called partitioned primary index (ppi) and discuss the advantages of using it in a query?

553


Can we collect statistics on table level?

612


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

610


Explain teradata architecture?

643


Define views in teradata with syntax.

648


Define views in teradata with general syntax.

578


What is the difference between teradata and basic rdbms?

572


What are the design features involved in teradata?

555