Reduce number of SQL queries for service templates
What does this MR do?
- Move logic from
Admin::ServicesController
toService
. - Improve performance avoiding N+1 queries:
- Retrieve service templates reduced from 39 to 6 query counts.
- Create service templates reduced from 178 to 79 query counts.
Closes #20820 (closed)
Edited by 🤖 GitLab Bot 🤖