TECHNIQUES FOR TRANSFORMING AND LOADING DATA INTO A FACT TABLE IN A DATA WAREHOUSE
First Claim
1. A method of facilitating transformation of a set of records, the method comprising:
- determining a plurality of dimension tables associated with a fact table in a data warehouse;
determining a set of one or more dimension tables from the plurality of dimension tables for which an outer join operation is to be used for adding foreign keys corresponding to the dimension tables to a plurality of records stored in a staging table prior to loading of the records in the fact table in the data warehouse; and
providing a query for outer joining the dimension tables in the set of dimension tables to the staging table, wherein execution of the query causes, for each dimension table in the set of dimension tables, one or more foreign keys for the dimension table to be added to the records of the staging table.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques for transforming records prior to loading the records into a data warehouse in an efficient manner. In one embodiment, instead of using lookup transformations, a database operation such as an outer join operation is used to transform records stored in a fact staging table to add foreign keys to the records corresponding to the dimension tables that are associated with a fact table in a data warehouse to which the records are to be loaded. Since the outer join operation is memory intensive, a determination is made as to which dimension tables from the multiple dimension tables associated with the fact table are suitable, from a performance perspective, for the outer join operation. Only those suitable dimension tables are outer joined to the fact staging table to add the foreign keys for the outer joined dimension tables to the fact staging table records. Lookup transformations may be used to add foreign keys to the fact staging table records for the non-suitable dimension tables. The transformed fact records with the foreign keys may then be loaded into the fact table in the data warehouse.
-
Citations
13 Claims
-
1. A method of facilitating transformation of a set of records, the method comprising:
-
determining a plurality of dimension tables associated with a fact table in a data warehouse; determining a set of one or more dimension tables from the plurality of dimension tables for which an outer join operation is to be used for adding foreign keys corresponding to the dimension tables to a plurality of records stored in a staging table prior to loading of the records in the fact table in the data warehouse; and providing a query for outer joining the dimension tables in the set of dimension tables to the staging table, wherein execution of the query causes, for each dimension table in the set of dimension tables, one or more foreign keys for the dimension table to be added to the records of the staging table. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method of facilitating transformation of a set of records, the method comprising:
-
for a first set of dimension tables from a plurality of dimension tables associated with a fact table, providing a query for outer joining the dimension tables in the first set of dimension tables to a staging table, wherein execution of the query causes, for each dimension table in the first set of dimension tables, one or more foreign keys for the dimension table to be added to records of the staging table; and for a second set of dimension tables comprising one or more dimension tables from the plurality of dimension tables associated with the fact table that are not included in the first set of dimension tables, providing one or more lookup transformations, wherein the lookup transformations are usable for adding one or more foreign keys corresponding to the dimension tables in the second set of dimension tables to the records of the staging table. - View Dependent Claims (12, 13)
-
Specification