CDC problem with partion

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
vinsashi
Participant
Posts: 150
Joined: Mon Aug 20, 2007 4:52 am
Location: singapore

CDC problem with partion

Post by vinsashi »

Hi,
In my job i am using CDC stage.I have to compare source data with target data if any new records then i should insert.I have desinged like this refence(less) Ref(less) target
! ! !(entire&sort on 4keycol)
source-Lookup- -----Loookp----(entire&sorton 4keycol)CDC---Trans(Surkey)---TargetDB


My source contains 2,000,000 records .if i run on 2node i am getting 4,000,000 records.and it taking 2 to 3 hr time.I should get only 2,00,000 records(new records only 2,000,000).Please help me if any solution for this one other than running on single node and perfomance tunning for this job.


Thanks
V....
rohithmuthyala
Participant
Posts: 57
Joined: Wed Oct 21, 2009 4:46 am
Location: India

Post by rohithmuthyala »

Hi,
As you are using the partition type as entire this problem is encountered, changing the partitioning type can help. I would suggest to go for hash partitioning on the key column combination.
Rohith
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

Code: Select all

        refence(less)   Ref(less)                     target
             !            !                             !(entire&sort on 4keycol)
source-Lookup-  -----Loookp----(entire&sorton 4keycol)CDC---Trans(Surkey)---TargetDB


use the code tags to preserve the formating.

Why are you using entire partitioning at all. In case of CDC you are just duplicating the data on each node and hence you are getting duplicates in output too (already mentioned 2 nodes hence twice the numbers). Use Hash partition so that the incoming data remains unique across the nodes and is key partitioned so that it finds the match if any in other link.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
Post Reply