Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

What is the Criteria to choose best Primary Index ?

Be careful while Choosing the Primary index because it affects the data storage and performance.

The following are the important tips while choosing the primary index.

1. Data Distribution.
You need to analyze the Number of distinct values in the table . If the primary index of the table contains less number of null values and more distinct values,it will give better the performance.

2. Access frequency. 
The Column has to be frequently used in the where clause during the row selection.
The column should be that which is frequently used in join process.

3. Volatility
The column should not be frequently changed.


This post first appeared on Teradata SQL Reference, please read the originial post: here

Share the post

What is the Criteria to choose best Primary Index ?

×

Subscribe to Teradata Sql Reference

Get updates delivered right to your inbox!

Thank you for your subscription

×