i hav data like this
1
1
2
2
2
3
how to send all 1's to one target,all 2's to other target and all 3's to another target.
can i use partition tech?
how to send different partions data to different targets?
Moderators: chulett, rschirm, roy
how to send different partions data to different targets?
Last edited by jhansi on Thu Jun 14, 2012 2:26 am, edited 1 time in total.
jhansi
-
- Participant
- Posts: 527
- Joined: Thu Apr 19, 2007 1:25 am
- Location: Melbourne
Re: how to send different partions data to different targets
If you have 4................400
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Welcome aboard.
When's the interview?
Why the requirement to use partitioning technology?
It probably can be done, but would not be for the faint-hearted. As SURA suggests, the partitioning technology handles from one to a countably infinite number of processing nodes, so you would need to devise a naming strategy for your targets.
When's the interview?
Why the requirement to use partitioning technology?
It probably can be done, but would not be for the faint-hearted. As SURA suggests, the partitioning technology handles from one to a countably infinite number of processing nodes, so you would need to devise a naming strategy for your targets.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
I don't see how you are going to accomplish something that is going to give you a dynamic number of output links from whatever stage you might use.
To use partitioning techniques you would need to know how many keys of the type you provided you are going to get and the number of rows per key should be at least almost equal, because otherwise your partitioning will be inefficient due to skewing.
If you know which key values are to be expected, you can of course use transformer-constraints to split your data. You can also define an "Otherwise"-link, that will take all the data you did not provide specific links for.
To use partitioning techniques you would need to know how many keys of the type you provided you are going to get and the number of rows per key should be at least almost equal, because otherwise your partitioning will be inefficient due to skewing.
If you know which key values are to be expected, you can of course use transformer-constraints to split your data. You can also define an "Otherwise"-link, that will take all the data you did not provide specific links for.
"It is not the lucky ones are grateful.
There are the grateful those are happy." Francis Bacon
There are the grateful those are happy." Francis Bacon
Please understand clearly what the requirement is, and then start to think about the logic. Think max possibilities and ask questions with whoever given this task. Then start looking for solution!jhansi wrote:but what if i hav large amount of data?
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
-
- Participant
- Posts: 527
- Joined: Thu Apr 19, 2007 1:25 am
- Location: Melbourne
Think about it for a second.jhansi wrote:i can use filter or transformer by giving contraint likestuartjvnorton wrote:Why not just use a filter?
DSLink5.sno =1 Then DSLink5.sno Else 0
.but what if i hav large amount of data?
When you partition, you can use a number of methods to work out which partition to put a record in.
In your case, you specified integer values. Using a modulus to split the output would be trivial.