I would safegueard the code execution in the daemon by checking %Dictionary.CompiledClass to see if the chunk classes are compiled yet.
In addition, here is the intro course from learning https://learning.intersystems.com/course/view.php?id=1130
Certifications & Credly badges:


Global Masters badges:







Followers:
Following:
Timo has not followed anybody yet.
From a performance aspect i would not use objects to retrieve the data, but use SQL.
SQL will take care of the conversion for you.
e.g.
select PAADM_PAPMI_DR->PAPMI_PAPER_DR->PAPER_StName from SQLUSer.PA_Adm where PAADM_Hospital_DR = 2 and PAADM_AdmDate>='19/03/2025' and PAADM_AdmDate<='19/03/2025'