Can any one please provide me practical example of How to
do the performance tuning in Query??

Answer Posted / subbareddy kake

I will give you example for this....

Select *from emp where deptno=20 and empno:7788

above query will take much time to execute compared to
bellow query
Select *from emp where empno=7788 and deptno=20

becoz first query will take 1st all 20th dept emps and
again it will search for specific empno.but second query
will search first 7788 empno next it will see,that empno is
related to 20th dept or no.

So it will take less time for execution.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the things to be considered while creating secondary index?

726


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

645


What is partitioned primary index (ppi)?

666


What are the different table types that are supported by teradata?

635


Explain the teradata primary index mechanics in detail with a diagram.

652






Can you fastexport a field, which is primary key by putting equality on that key?

843


In Teradata, what is the significance of UPSERT command?

675


If the PMON is not working then how do you identify and monitor all the processes, resources and sessions ?

1835


How is MLOAD Client System restarted after execution?

691


In the Primary Index, what is the score of AMPs that are actively involved?

662


How would you load a very large file in teradata in general?

669


If I wanted to run a TPump job only once per day - basically working on a file that is produced once per day - how would you set up the parameters for that sort of job ?

2006


What is inner join and outer join?

695


Explain and compare pros and cons of snow flake schemas?

698


What do you mean by ttu in teradata?

651