Performance of workflow activities vs JS
Hello,
I have a question regarding of the performance inside an workflow.
Let's take for example that I want to do this:
1. Take all the records inside an schema
2. Using 2-3 attributes (some might even be from linked schemas) to do some calculation which later would be saved
3. Compare the calculated values with the old ones (from step 1)
4. If the values are different, update the entries else do nothing
The number of records being one that's very high...
I want to know which way is faster performance wise, to use an query activity, enrichment and then update the data, or do everything inside an JS activity using queryDef and xtkSession.WriteCollection() ...
From what I dug into the files of ACC, I found that WriteCollection and queryDef basically does an SOAP request which is later interpreted by nlserver and the same thing applies to creating new entries though the ACC form interfaces, but I don't know about the actual activities inside an workflow.
Can somebody help me by clarifying which is faster? An workflow activity or JS function?