Anda di halaman 1dari 2

Overview

When you run a session with multiple Lookup transformations, the


PowerCenter Server creates caches for the Lookup transformations
sequentially. If you have large lookup sources, you can increase
performance y creating sessions to uil! persistent lookup caches
concurrently. "ou can then reuse the persistent caches in your session
without the performance impact of uil!ing each lookup cache from the
!ataase.
#he PowerCenter Server uil!s caches for Lookup transformations
sequentially, even when you ranch the mapping or a!! partitions. $or
e%ample, you have the following Sales mapping&
#he structure of the mapping is parallel. 'owever, the PowerCenter
Server uil!s the lookup caches sequentially. #o increase performance,
you can create name! persistent caches an! use them in your session.
Steps to Create an! (euse Persistent Caches
Complete the following steps to uil! persistent caches an! use them in
your session&
). Create reusale Lookup transformations. When you create the Lookup
transformations, enale persistent caches an! specify a cache file name
prefi%.
*. Create the mappings to uil! the persistent caches. Create a separate
mapping for each Lookup transformation. "ou use the same reusale
Lookup transformations in this mapping that you use in the mapping to
process your !ata.
+. Create the mapping to process your !ata. Create a mapping that uses all the
Lookup transformations you use! in step *. #his mapping can use the
persistent caches you create in
Step *.
,. Create a session for each of the mappings. Create a separate session for each
of the mappings. #he PowerCenter Server can process caches in parallel
when the Lookup transformations are in !ifferent sessions.
-. Create the workflow to inclu!e the sessions that uil! the persistent
caches an! the session that processes the !ata. Create a workflow to
inclu!e the sessions that uil! the persistent caches an! the session
that processes the !ata.
Step )& Create (eusale Lookup #ransformations
Create the Lookup transformations you want to use in the mapping. #o
save an! reuse the cache files, enale persistent caches in the Lookup
transformation properties.
#o reuse the cache! files across !ifferent sessions, specify a cache file
name prefi%.
Step *& Create the .appings to /uil! the Persistent Caches
#o uil! the persistent caches, create a mapping for each lookup cache
an! write the !ata to a flat file target you can !iscar!. When you uil!
the mapping, a!! a filter to the Source 0ualifier so that the
PowerCenter Server rea!s only one row of !ata. Later, you create a
session ase! on each of these mappings.
$or e%ample, you nee! to create caches for the Sales mapping with the
following Lookup transformations& L1P2Cen, L1P23W, an! L1P2SW.
Create the following mapping for the L1P2Cen Lookup transformation&
#he mapping rea!s the source, creates the cache for the Lookup
transformation an! writes to the flat file target.
Create similar mappings for L1P2SW an! L1P23W. 4erify that the cache
for each Lookup transformation is name!
an! persistent.
Step +& Create the .apping to Process the 5ata
6fter you create the mapping to uil! the persistent caches, create the
mapping to process your !ata. 7se the Lookup transformations an!
persistent name! caches you create! in Step ). $or e%ample, you create
the following Sales mapping&
#he three Lookup transformations in this mapping are the same ones
you use to uil! the persistent caches.
Step ,& Create a Session for 8ach of the .appings
6fter you create the mappings to uil! the persistent caches, you nee!
to create a separate session for each of the mappings. $or e%ample, you
create three sessions correspon!ing to each of the mappings you
create! in Step *. #hese sessions uil! the persistent caches&
S2L1P2Cen
S2L1P23W
S2L1P2SW
"ou create another session ase! on the mapping you create! in Step +.
#his session processes the !ata&
S2Sales25ata
Step -& Create a Workflow to Inclu!e 6ll the Sessions
Create a workflow that uses all the sessions. #he PowerCenter Server
runs the three cache9uil!ing sessions in parallel. #herefore, it creates
the persistent caches concurrently an! improves performance. $or
e%ample, if each
cache took fifteen minutes to uil!, it woul! take forty9five minutes to
uil! the caches sequentially, an! fifteen minutes to uil! the caches
concurrently.
#he session that processes your !ata runs after the sessions that uil!
the caches. #he PowerCenter Server uil!s the memory cache for this
session from the name! persistent cache files. #his improves
performance ecause the PowerCenter Server !oes not have to create
the cache from the !ataase.
3ote& If you nee! to reuil! caches each time you run the session, you
can specify the (ecache from Lookup Source property when you create
the mappings. If you !o not nee! to reuil! the caches each time you
run the session, you can use this workflow to uil! caches, an! run a
separate workflow to process your !ata thereafter.