I know this is an older post but here is what I discovered through trial and error - not related to models but templates. If you try to use the "route by template" e.g. where you make a method in the controller to match the name of a template for your doc type, its insanely slow. Index method = about 200 to 400ms server render, a template routed conteroller action = about 2 to 7 SECONDS.
This is in Umbraco 10 - I don't know if its still an issue in v13 yet as we haven't had a chance to update.
Our workaround for it was to stop using route by template, only use Index and then if a special action in render controller is needed per template just look at the template in index and call a private method to handle it yourself.
Slow rendercontroller
Hi
When im using a rendercontroller in umbraco 10 the pageload is extremly slow
I have tried to remove all logic to test if that was the reason, but that does not help
Could be this? https://adolfi.dev/blog/solved-manual-action-required-performance-issue-in-umbraco-9-10-when-using-contentmodel-or-modelsbuilder-models-in-custom-controllers/
I know this is an older post but here is what I discovered through trial and error - not related to models but templates. If you try to use the "route by template" e.g. where you make a method in the controller to match the name of a template for your doc type, its insanely slow. Index method = about 200 to 400ms server render, a template routed conteroller action = about 2 to 7 SECONDS.
This is in Umbraco 10 - I don't know if its still an issue in v13 yet as we haven't had a chance to update.
Our workaround for it was to stop using route by template, only use Index and then if a special action in render controller is needed per template just look at the template in index and call a private method to handle it yourself.
is working on a reply...