A task to "Create new Gravesite IDs" in the Cemetery Management Solution uses the Calculate Field tool and is prepopulated with an Arcade Statement. In my case, I have ~18,000 gravesites and the process timed out after a couple of hours. Using a SQL statement instead of the Arcade statement (prepopulated by Esri) took seconds to complete.
I'd suggest Esri follow its own best practices and use SQL instead of Arcade for such tasks.
Optimize web feature layers—ArcGIS Pro | Documentation