Page 1 of 1

DB2 connector - doubling records

Posted: Fri Jul 07, 2017 6:55 am
by tj_user
Hi All,

I have strange situation in my project. In the DB2 Connector I enable: Enable partition reads. Then I choose Modulo and specify column.
I have examples where the DB2 connector after such settings multiplies my data by 2. But I also have DB2 connectors where it doesn't multiply the data.

What can be reason?

Job is running on 2 nodes. Version 11.5

Kind regards,
TJ

Re: DB2 connector - strange behaviour

Posted: Wed Aug 23, 2017 1:30 pm
by MT
Hi

"Enable partition reads" will work with partitioned databases in DB2 - if you have a single partition database you will not see a performance effect

regards
MT

Re: DB2 connector - doubling records

Posted: Thu Aug 31, 2017 1:16 pm
by R.K.Glover
If it runs on four nodes, I bet it'll quadruple the data.

I'm guessing that your modulo and your partitioning in DB2 aren't the same. So, effectively, your SQL statement, that runs on each partition, is not constraining its results to the records that are on that partition.

Posted: Thu Aug 31, 2017 1:48 pm
by PaulVL
Did you select a numeric column type like integer?