I have created this script that does lot of writes to a single global. DB write performance is much slower than expected (compared to another similar systems).
The subroutine ^routine is not executed while the queue is being processed in WorkMgr. However, it works when defined as a function. Is it mandatory to define subroutine^routine as a function for it to execute properly?