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

Difference between NUSI and Hash ordered NUSI? - response (3) by Raja_KT

$
0
0

Hi Nishant,

 

I have never encountered that situation in real time. However,my findings are highlighted below:

 

USIs are always stored in hash order on an AMP, while NUSIs can be stored either in hash order or in value order on an AMP.

 

hash-ordered NUSI goes well with = on the secondary index column.VOSIs for processing range conditions (like between ...) and  conditions with either an equality or inequality on the secondary index column

 

If a value-ordered index is defined on the column that

 

satisfies a range predicate from this list, then a full-table scan is not necessary to satisfy the

 

condition and the Optimizer merely scans a subset of the value-ordered index subtable instead.

 

I think you want an index to be used instead of full table scan.

 

So my suggestion is to test your cases  and run the explain.

 

Cheers,

 

Raja


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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