Rule Run Time Optimization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I have a substantially long rule that runs on save to updates our BOM, works great and doesn't have any problems. I would like to have it run faster to be more efficient.
I will post two rules that do the same thing but I am curious which would run faster
If A = B Then
Do a thing
Else
Do another thing
or
If A = B Then
Run a Rule
Else
Run another Rule
Some quick testing says separating different If statements into their own rules seems faster but I don't want to invest the time if its not substantial. Does having less lines in a rule cause it to run faster even if some If statements don't have their conditions met?
So lets say a If Statement doesn't have its conditions met, does the software still go through the lines but doesn't do anything? Or does it just skip ahead to the next If statement to see if conditions are met?
Just trying to get a understanding how the software goes through the code