The fastest is when the Primary Index is utilized in the WHERE clause of the query. The second fastest way is when a Secondary Index is utilized in the WHERE clause of the query. The final way (and the slowest) is a Full Table Scan. The example below utilizes the PRIMARY INDEX which really means it utilizes a NON-UNIQUE PRIMARY INDEX (NUPI). When you utilize a NUPI spool will be used. Notice that a NON-UNIQUE PRIMARY INDEX is still a 1-AMP Operation.
Profiles Teradata V2R5 now has Profiles. A Profile is a set of common user parameters that can be applied to a group of users. This will allow a DBA to establish some common parameters (Like SPOOL Space) for a set of users. The DBA can then modify the parameter and the change is applied immediately to all effected users. A Profile is simply a set of common user parameters applied to a group of users. Parameters include: Spool Space Allocation
Two commands have been introduced for PROFILES and they are:
Three Types of Parallelism with Teradata Teradata was born to be parallel and has three types of parallelism. They are Multi-AMP, Multi-Step, and MultiStatement. For users submitting a great deal of ALL-AMP requests they can increase parallelism by using more sessions and using more Multi-Statement requests. Multi-AMP Teradata spreads the rows of a table across all AMPs. When someone runs a query that uses more than one AMP, it is called Multi-AMP. Heres an example: