- In derivations, instead of calling routines, implement the logic in the derivation. This eliminates the overhead of the procedure call.
- Implement the logic in a stage variable and then point the stage variable to the actual field.
- Use Transforms rather than using routines.
- While using the ODBC stage adjust the rows per transaction setting. Try setting to 1000, 5000, or 10000.
- Adjust the array size setting. Try setting to 10, 100, or 1000.
- If output rows are Inserts or Appends and not Updates, consider using a native bulk loader.
- Eliminate unused columns.
- Eliminate unused references.
- Minimize using the stages like SORT, AGGREGATE which minimizes the performance of the job.
- If more transformer Stages are used in sequence in a job, Enable the inter process buffering in the job properties or use the InterProcess Stage between Transformers which improves the performance.
- Direct output to a sequential file compatible with the bulk loader. Then invoke the bulk loader using an after-job subroutine. The bulk loader for Oracle is SQLLDR.
- Avoid using 'like' operator in user defined queries in ODBC stages
- Avoid using stored procedures until and unless the functionality cannot be implemented in Data Stage jobs.
- Tips while creating routines
- Use variables in the routines.
- Assign empty values to the variables before using them.
- Routines will return Ans as return value. Instead of using ANS multiple times, use a variable .Implement the logic in that variable and assign that variable to ANS.
- For Example: Ans = ''
If ( Len(Trim(Name)) > 45) Then Ans = Ans : ',' : '24356' End
Ans = Ans
The above logic can be implemented using
ErrStr = ''Ans = ''
If ( Len(Trim(Name)) > 45) Then ErrStr := ',24356'End Ans = ErrStr
This Blog is all about ETL related Information.It gives information about Datastage ,Informatica,Oracle,SQL,PL/SQL ,Unix,Data warehousing ,Data Modeling and ER Model concepts and FAQ's