Anda di halaman 1dari 3

NON-UNIQUE PRIMARY INDEX (NUPI) Teradata retrieves rows in three ways.

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

Temp Space Allocation Password Attributes Account IDs Default Databases

Two commands have been introduced for PROFILES and they are:

CREATE PROFILE DROP PROFILE


Initially, only DBC has the CREATE or DROP PROFILE access rights. DBC can then GRANT others these rights.

GRANT CREATE PROFILE, DROP PROFILE TO Sysdba WITH GRANT OPTION.


Sysdba can now create a Profile. Here is how it would CREATE a Profile.

CREATE PROFILE USER1 AS SPOOL = 100MB;


The PROFILE has now been created. Here is how you would utilize the profile.

CREATE USER TomC AS PERM=0, Password = Apple2, PROFILE = USER1;

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:

Anda mungkin juga menyukai