Sunday, 2 September 2012

Lookup Condition in Informatica Lookup Transformaton

Hi guys,as you now whenever we use a Lookup Transformaton in Informatica then we need to mention the Lookup Condition also. It’s just like the WHERE clause in SQL. When you configure a lookup condition for the transformation, you compare transformation input values with values in the lookup source. When we run the workflow, Integration service checks for the lookup source columns based on the lookup conditions .So when you create the lookup conditions you should be careful.
Follow the below guidelines while creating the lookup condition.
  • The datatype in the lookup condition should be same or matching (lookup source column and lookup target column).
  • Use only one input port for each lookup port used in the condition.
  • When you enter multiple Lookup condition it will treat as AND condition, so be careful with that
  • The integration services match null value also. So all the null values coming from the input will be evaluated.
  • If you configure a flat file lookup for sorted input, the Integration Service fails the session if the condition columns are not grouped

Saturday, 1 September 2012

Types of Lookup Transformations

1. Connected or Unconnected:
They differ in the way output is received. In Connected Lookup the input is received through pipeline whereas in Unconnected Lookup receives input values from the result of a :LKP expression in another transformation
2. Lookup via Flat File or Relational:
After creating Lookup Transformation we can lookup either on a Flat file or on relational tables.
When we do Lookup on Relational tables we have to connect to the required table which will be there in the source list of Lookup. If it’s not there then we need to import the table definition for the Lookup Transformation
When we do Lookup on Flat files the Designer invokes the Flat File Wizard and connects the source.
3. Cached or Uncached :
Lookup Cache can be of two types:
1. Dynamic Cache: If its Dynamic Cache then integration service takes the rows from the cache .This improves the session performance and speeds up the activity.
2. Static Cache: By default the Lookup cache will be static and will not change during the entire session.

How to improve session using Joiner Transformation?

In order to improve the session performance check the below things
1.Use Sorted Input to the Joiner
Use sorted Input to the Joiner Transformation for improving the session performance. This reduces the time taken by Integration services
2.Unsorted Data
For an unsorted Joiner transformation, use the source with fewer rows as the master source and the other as detail.
3.Sorted Data
For a sorted Joiner transformation, use the source with fewer duplicate key values as the master source and the other as detail.
4.Use Database Join
In some cases we cannot join at session level, in that case we need to join at Database level. Joining at database level improves the session performance. For joining at database level
  • Create stored procedure to perform the join
  • Use the Source Qualifier transformation to perform the join.

How to remove Null values using Filter Transformation?

In the Filter Transformation you can filter out rows having null values and spaces by using ISNULL and IS_SPACES functions.
For example , to filter out rows that contain null in EMP_NAME column us the below condition
IIF(ISNULL(EMP_NAME),FALSE,TRUE)
This condition says that if the Employee name is null then discard the row else pass it to the next transfomation
Related Posts Plugin for WordPress, Blogger...

ShareThis