Solved

Validation XML with or without max rows

  • 12 January 2022
  • 2 replies
  • 188 views

Userlevel 2
Badge +4

Will there be a performance impact if a validation XML is used without max rows? Let’s say the hierarchy select in the validation XML generates thousands of records. Will it be beneficial to limit it to just one (or the first) row?


In SQL, it’s typical to use a top X statement to minimize any performance impact.

 

 

icon

Best answer by Saranga Amaraweera 17 January 2022, 03:26

View original

2 replies

Userlevel 7
Badge +22

Hi @neville.elias ,

Since your main intension is only to validate the xml business rule when the conditions in the validation xml are met ( is either returning true or false), it is always recommended to optimize your xml message if it returns more than one result. There is no point of returning multiple rows in the result as the validation xml behaves similar to a boolean expression (true or false). Hence, as per your question, of course it's beneficial to limit the result from the performance perspectives. (However the maximum row limit has been set to 1000 rows by default in the app params).

Userlevel 2
Badge +4

Thanks Saranga. 

Reply