Having been hooked on NR for about a year, and steadily evolving a massive spaghetti of many flows with somewhat diverse bouquet of common solutions, and getting to a point where it feels like some unnecessary weight, I want to set a strategy for optimisation. While also learning something new.
Will turning as much as possible of random function nodes coupled with switches and change and Template nodes, each place turned into maybe just one change node utilising jsonata (which I am just getting familiar with) both in general make sense and improve performance? I somewhat feel like the point of the visual GUI of NR is to stretch flows out with wires and not hide too much logic in massive single nodes but mine is certainly not looking good, and the only reason why it is workable is because I’m in it so often and mostly know where things are hiding.
Having also gone from retaining MQTT messages to increasingly updating global context variables all over the place in convoluted ways, also benefit from some kind of central state machine? Maybe not performance wise but is it a “next step” way to get overview and control, and be ready for further flows and development?
I have never bothered with subflows though. Maybe this is the better starting point.
Any other good general strategy or thematic tactics for optimisation ?