Skip to content

Reduce number of SQL queries for service templates

Arturo Herrero requested to merge 20820-service-templates-performance into master

What does this MR do?

  • Move logic from Admin::ServicesController to Service.
  • 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 🤖

Merge request reports

Loading