Slow execution

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

Welcome to the community @aljaz86!

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?

Does this help in any way?

The example (input) values that get calculated are:
34/108

And when I am building the expression already my browser freezes for a while.

Thanks a lot for reporting this. There is def. something very strange going on. We will investigate and then update you.

Great. Thank you. Btw. AMAZING product! Congrats for creating something so useful!

Thank you very much! That is very great to hear! Let’s just try to figure out what strange thing is going on here :wink: