Toggle navigation
Log in
Sign Up
Log in
Sign Up
Appium
C
C#
C++
Docker
Go
Informatica
Java
JavaScript
Kafka
Numpy
Oracle
Pandas
PHP
Py Spark
Python
R
React Native
Scipy
SFTP
Tableau
Teradata
TGMC
UNIX
Introducing
Radical.sh
Forget Code launches a powerful code generator for building API's
Forget_Code.Models.CategoryViewModel
Add a new snippet
Aggregate Functions
8
BTEQ
76
Collect Statistics
5
CTE
2
Cursor
3
Data Type
3
Date Functions
27
DCL Queries
4
DDL Queries
46
DML Queries
6
Error And Resolution
2
Functions
3
Loaders
3
Macro
6
Math Functions
14
Misc
15
Query Tuning
3
Select Modifiers
56
Snippets
13
String Functions
9
Choose Category
Difference between UPI vs PI in Teradata
Forget Code
Teradata
Difference between UPI vs PI
Unique primary index and Non-unique primary index are associated with SET and MULTISET tables respectively.
For a SET table, Unique primary index is always defined. The reason behind is in order to avoid the overhead of duplicate check. If UPI is not defined for SET table, then the SET table itself will scan the entire records to find out the duplicates whereas UPI proactively checks duplicate entry. Since less columns are defined under UPI, it finds duplicate records faster than SET.
NUPI otherwise will be used for MULTISET tables. Since Multiset table does not look for duplicate entries, NUPI will be just used to index fields.
Difference in brief:
UPI
NUPI
Defined for SET table
Defined for MULTISET table
Duplicate check is handled by UPI
No duplicate check is handled
UPI reduces overhead for SET for duplicates
NUPI will be used for indexing purpose only.
Tags for Difference between UPI vs PI in Teradata
DP_Query Tuning
unique primary index vs primary index
difference in unique index
Difference between unique primary index and non unique primary index
ipi vs nupi teradata
how to define upi and nupi teradata
diiference between upi and nupi
difference upi and pi
difference between pi and upi in teradata
difference between upi and non upi
difference between set pi and set upi
Contribute to Forget Code, help others.
Add snippet