Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Composite Secondary Index- - response (3) by j355ga

$
0
0

There is no way to guess which is better -  you will need to experiment. Try both single and two col index.  Review the EXPLAIN plan for both. Compare the performance of no SI, single SI and two col SI and decide which gives the best results.  There is no one definite answer when it comes to picking PI, SI etc.
 A covered query is one in which all of the columns in your SELECT are also in a SI or Join Index.
If you have col a, b, c in your sql but the SI only has col a, b then the optimizer will not consider the SI for a covered query. 
Read this post for more on covered query http://forums.teradata.com/forum/database/covered-query.
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>