Improve performance of pages_virtual_domain
When exposing Namespace#pages_virtual_domain it eventually delegates `private_pages?` to `project_feature`, and needs `route` for `full_path`. Preloading these two associations avoids N+1 queries problem. Related to https://gitlab.com/gitlab-org/gitlab/issues/207096.
Showing
Please register or sign in to comment