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

Secondary indexes - response (13) by vrushang

$
0
0

Knowing that tables are loaded with mload so there won’t be any join index so  SI would help to join tables .
I agree with Shelley. Creating a  valued order NUSI would be good, when you are running small range queries and USI when equality conditions when SI columns is part of where clause.
If there are multiple SI then avoid using OR operator as optimizer would not consider the SI and perform FTS. So for optimizer to SI use the AND operator ( NUSI Bit mapping)
Cons of SI
1)if stats not collected on the SI columns then it won’t be effective.
2) SI would need additional IO , thus if MLOAD is updating  the SI column it might be costly to create SI
 
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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