I have a SET node which caclulates a new value from other two in the previous node. It is a basic math calculation, but it takes really long to execute.
I have 10 items that the function need to go throug and it takes 126145 ms to execute. All the other nodes before that execute really fast.
This is the expression:
{{Math.round($node[“Merge5”].json[“count_stayover”]/$node[“Merge5”].json[“rooms_for_occupancy”]*100)}}
Any idea why this takes so long? Is the expression not ok?
Information on your n8n setup
n8n version: 0.172.0
**Database you’re using (default: SQLite): SQLite
Running n8n with the execution process [own(default), main]: own
Running n8n via [Docker, npm, n8n.cloud, desktop app]: npm
Can not think of a reason why that should take that long. Can you maybe share a simple version of the workflow you experience that behavior you can share that we can have a look?