Rate Limit has exceeded for setVariables. Default is 20 per message

Hi, I am struggling with an issue on App Platform (NOT CLOUD PLATFORM)

In App platform we are designing a complex flow, for which we have define many variables in memory (more then 40 in a single fn)

I am getting below error in the console
Rate Limit has exceeded for setVariables. Default is 20 per message

Can someone help me with increasing the default to 50 per message for a specific fn or how do I override default behaviour?

Any Docs I can refer to?

You can assign the whole object of values in 1 memory value rather than doing wx:

app.setVariables(x1, y1)
app.setVariables(x2, y2)

.........
app.setVariables(xn, yn)

Instead, try something like

app.setVariables(x, {x1:y1,x2:y2,x3:y3.....xn:yn})

and access accordingly.
That would drastically reduce the number of memory calls per message and have it in 1 or 2 memory calls.
You can try this out.

Thank You!!

Thanks for the reply @Subhrajit_Gupta
The reason for splitting this in multiple variables is this variables are mostly booleans, they are defined as booleans coz we want to access its value in the journey,

In App platform I could not find any way through which we can use objects directly in journey conditions