Archives of the TeradataForum
Message Posted: Wed, 09 Mar 2005 @ 20:46:11 GMT
The primary index will only be used if you have an equality constraint on each column in the index.
A NUSI may well be used, especially if it is value ordered with statistics collected on it.
Another option, possibly better, is to use a partitioned primary index (PPI) with a partitioning scheme which allows the DBMS to delete an entire partition. I accept that implementing this on an existing billion row table will not be easy, but it may give the best result slong term.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|