Professional Documents
Culture Documents
Feature
:
This document gives steps to modify SIL_GLOtherFact, improving its
performance by replacing LEFT OUTER join with correlated query.
Solution:
Steps: ODI Changes
W_GL_OTHER_FS.LEDGER_ID
=
LKP_W_INT_ORG_D_BSV_LE.LEGER_ID
c. Change the Lookup Type to SQL expression in the select clause
d. Click Finish.
e. Re-open the lookup condition, change it to
W_GL_OTHER_FS.LEDGER_ID = LKP_W_INT_ORG_D_BSV_LE.LEGER_ID
AND ACCT.BALANCING_SEGMENT_ATTRIB =
LKP_W_INT_ORG_D_BSV_LE.VALUE_SET_ID
AND ACCT.BALANCING_SEGMENT_NUM =
LKP_W_INT_ORG_D_BSV_LE.SEGMENT_VALUE
AND W_GL_OTHER_FS.DATASOURCE_NUM_ID =
LKP_W_INT_ORG_D_BSV_LE.DATASOURCE_NUM_ID
Note: step b. and e. is to overcome an ODI limitation. Sometimes you
have trouble creating a lookup which joins to two sources but you can
later modify the joins to two sources.
LKP_W_INT_ORG_D_PURCH_ORG
LKP_W_XACT_TYPE_D_REF_DOC
LKP_W_XACT_TYPE_D_CLRNG_DOC
LKP_W_PAYMENT_METHOD_D
LKP_W_PAYMENT_TERMS_D
LKP_W_PRODUCT_D
LKP_W_INT_ORG_D_COMPANY_ORG
For LKP_W_INT_ORG_D_COMPANY_ORG, change the lookup condition to:
SQ_W_GL_OTHER_FS.DATASOURCE_NUM_ID =
LKP_W_INT_ORG_D_COMPANY_ORG.DATASOURCE_NUM_ID
AND
COALESCE(SQ_W_GL_OTHER_FS.COMPANY_ORG_ID,'COMPANY~'||
SQ_W_GL_OTHER_FS.LEGAL_ENTITY_ID) =
LKP_W_INT_ORG_D_COMPANY_ORG.INTEGRATION_ID
AND
SQ_W_GL_OTHER_FS.ACCT_PERIOD_END_DT >=
LKP_W_INT_ORG_D_COMPANY_ORG.EFFECTIVE_FROM_DT
AND
SQ_W_GL_OTHER_FS.ACCT_PERIOD_END_DT <
LKP_W_INT_ORG_D_COMPANY_ORG.EFFECTIVE_TO_DT
This new lookup condition use the new target column created in step 8
12 Delete source LKP_W_INT_ORG_D_BSV_LE. You should NOT see the pop up
window for you to confirm the delete.
13 For existing lookups, change the lookup type to SQL expression in the select
clause for all lookups except
LKP_W_GLOBAL_EXCH_RATE_G(LKP_W_GLOBAL_EXCH_RATE_G) and
LKP_W_EXCH_RATE_G_LOC(LKP_W_EXCH_RATE_G), which will still remain as
SQL left-outer join in the from clause.
You lookups should look like this after the fix:
14 Following the step of 3 Delete the old scenario and create new
scenario in
Instructions_How_to_Make_Change_on_ODI_Mappings.doc to create
new scenario SILOS_SIL_GLOTHERFACT in CUSTOM_SILOS folder.