I am indeed amazed when I consider how weak my mind is and how
prone to error --Rene Descartes
This is not a recommended approach; only explained here so that
you can identify it when it presents itself and avoid it.
The following indexes are created on the star schema example shown before:
- Concatenated index is created on the fact table:
sales_transaction (transaction_detail_key, product_key,
sales_org_key, calendar_key) - note the difference, compared to
the nested join approach where multiple indexes on
each foreign key were created
- In addition some indexes may be created on the dimension attributes that are frequently queried: transaction_details (transaction_type), product (SKU), sales_organization …