Originally posted by: Ziggym
Hello everyone,
Got some theoretical ponderings I wanted to share and get some input on.
Lets say we to process 2 million messages (small ones, quick transactions) and have a rule like :
1. IF(PRESENT(A) & ABSENT(B), "X")
Would it make any impact on performace to write this as :
2. IF(PRESENT(A),IF(ABSENT(B),"X"))
I realise I adding an IF to the rule but also cutting one part of the condition in case PRESENT(A) is false.
So to clear it up will option 2 make the processing of the rule slower (if both conditions needs to be tested) compared to rule 1 (ie do the & add a IF processing as well so its basically the same thing)
(I do realize that if condition A is not met rule 2 skips condition B and in those occurences should be quicker. A second path would ofc be to analyse the bulk of the messages and adjust the condition to whatever is most common.)
What's the verdict ? (if it all makes any sense)
Regards
Roberth
#IBM-Websphere-Transformation-Extender#DataExchange#IBMSterlingTransformationExtender