Leave feedback
  • Question

    Looping through data block or array?

Enter a new topic
  • Kian Hwee Yeo Kian Hwee Yeo
    0 likes 326 views

    Hi,

    I have a StreamServe project that might need to loop through certain repeating block of data many time during a job execution.

    I would like to check which operation is more expensive, loop through repeating block of mapped data or array?

    Thanks

    Kian Hwee

    Wednesday 26 October, 2016
  • Best Answer
    Rajkumar Aoutade Rajkumar Aoutade
    0 likes

    Hi,

    In terms of Performance we can have below scenarios

    For less data use Array because it will store that data temparary and you can loop it without going to storyteller internal parsing and its xpath. However if there is large data then definately block looping is good.

    Block looping works at run time so you will not have any control to modify except xpath. but in Array you can modify data very easily and you can apply your business rule and logs.

    If you give input file then will get more clearity on it.

     

    regards

    RAJ

     

     

     

    Thursday 27 October, 2016

 

Latest from the blogs

Read more