Define the Source Datastores and Lookups
The source datastores contain data used to load the target datastore. Two types of datastores can be used as an interface source: datastores from the models and temporary datastores that are the target of an interface.When using a temporary datastore that is the target of another interface as a source or as a lookup table, you can choose:
-
To use a persistent temporary datastore:
You will run a first interface creating and loading the temporary
datastore, and then a second interface sourcing from it. In this case,
you would typically sequence the two interfaces in a package.
-
Not to use a persistent datastore: The
second interface generates a sub-select corresponding to the loading of
the temporary datastore. This option is not always available as it
requires all datastores of the source interface to belong to the same
data server (for example, the source interface must not have any source
sets). You activate this option by selecting Use Temporary Interface as Derived Table on the source. Note the following when using a temporary interface as derived table:
-
The generated sub-select syntax can be either a standard sub-select
syntax (default behavior) or the customized syntax from the IKM used in
the first interface.
-
All IKM commands except the one that defines the derived-table statement option Use current command for Derived Table sub-select statement are ignored. This limitation causes, for example, that temporary index management is not supported.
-
The generated sub-select syntax can be either a standard sub-select
syntax (default behavior) or the customized syntax from the IKM used in
the first interface.
A lookup is a datastore (from a model or the target datastore of an interface) - called the lookup table - associated to a source datastore - the driving table - via a join expression and from which data can be fetched and used into mappings.
The lookup data is used in the mapping expressions. Lookup tables are added with the Lookup Wizard. Depending on the database, two syntaxes can be used for a lookup:
-
SQL Left-Outer Join in the FROM clause: The
lookup is processed as a regular source and a left-outer join
expression is generated to associate it with its driving table.
-
SQL expression in the SELECT clause: The
lookup is performed within the select clause that fetches the data from
the lookup table. This second syntax may sometimes be more efficient for
small lookup tables.
No comments:
Post a Comment