Foreign Keys

As with primary keys, use foreign keys to improve query join performance. This gives IQ one more piece of information on how tables are joined and the statistics behind those joins. IQ automatically creates an HG Index on the foreign key column, so no additional HG or LF index is necessary. A foreign key requires that a primary key exists on referenced table.

Related concepts
Indexing Tips
When and Where to use Indexes
Simple Index Selection Criteria
HG Index Loads
Multi-Column Indexes
Join Column
Primary Keys
Proper Data Type Sizing
IQ UNIQUE and MINIMIZE_STORAGE
Null Values
Unsigned Data Types
LONG VARCHAR and LONG VARBINARY
Large Object Storage
Temporary Tables
Denormalizing for Performance
UNION ALL Views for Faster Loads