Default Partitioning method

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
gsherry1
Charter Member
Charter Member
Posts: 173
Joined: Fri Jun 17, 2005 8:31 am
Location: Canada

Default Partitioning method

Post by gsherry1 »

Hello Forum,

When source is sequential file and I pass this through a transformer with default partitioning methods specified ie 'Auto'. What exactly is done. Is round robin method used, or does it perform hash partitioning by the key fields from my column metadata?

Thanks,

Greg
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

The default partitioning method is round robin.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

By default it is roundrobin. But it varies depends upon the stages you use. If you use the same auto partion in DB2 stage, it used DB2 partiton. If you use in sort or join, it automatically inserts hash. Since it is not predictable, it is alway advisable to use delibrate partition mehton.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
gsherry1
Charter Member
Charter Member
Posts: 173
Joined: Fri Jun 17, 2005 8:31 am
Location: Canada

Post by gsherry1 »

What if the data was already partitioned, will the join automatically repartition it by my join key?

For example. Suppose I have 2 Sequential file inputs which are linked to respective datasets using hash partitioning on key1. Then in second job I have these two datasets as inputs into join stage and am joining on key2. Will the join stage automatically repartition the datasets to key2?

- Greg
emma
Premium Member
Premium Member
Posts: 95
Joined: Fri Aug 08, 2003 10:30 am
Location: Montreal

Post by emma »

If Preserve-Partition flag is "Set" the partitioning is preserved if not ,yes the join stage will change the repartition.
Thanks,
Emma
Post Reply