gitlab-org--gitlab-foss/app
Andreas Brandl 82a32e2763 Apply query changes to snippets only.
This applies the changes introduced in `Project.public_or_visible_to_user`
to the snippets finder only.

We know that for `SnippetsFinder`, this change improves SQL timing from
5/23/25s to 0.7/2/4s (mean/p95/p99). At the same time, the scope was too
broad, (negatively) affecting SQL timings in various other places:

https://gitlab.com/gitlab-com/infrastructure/issues/3772

With this commit, the snippets dashboard stays usuable as we generally
don't run into statement timeouts. In contrast to the earlier change in
!17088, the scope of the change is limited to `SnippetsFinder` only,
thus not affecting other places.
2018-03-02 09:35:21 +01:00
..
assets Extend Cluster Applications to install GitLab Runner to Kubernetes cluster 2018-03-01 23:46:02 +00:00
controllers Merge branch 'feature/move_oauth_modules_to_auth_dir_structure' into 'master' 2018-03-01 17:47:01 +00:00
finders Apply query changes to snippets only. 2018-03-02 09:35:21 +01:00
helpers Remove u2f webpack bundle 2018-03-01 18:13:50 +00:00
mailers Add DNS verification to Pages custom domains 2018-02-23 12:22:29 +00:00
models Revert Project.public_or_visible_to_user changes 2018-03-02 09:23:05 +01:00
policies Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
presenters Use select instead reject 2018-02-22 13:59:15 -03:00
serializers Merge branch '41777-include-cycle-time-in-usage-ping' into 'master' 2018-03-01 17:40:24 +00:00
services Merge branch '42643-persist-external-ip-of-ingress-controller-gke' into 'master' 2018-03-01 17:38:04 +00:00
uploaders Fix 500 error when loading an invalid upload URL 2018-02-22 14:32:01 +00:00
validators Skip variables duplicates validator if variable is already a duplicate 2018-02-22 23:09:24 +01:00
views Extend Cluster Applications to install GitLab Runner to Kubernetes cluster 2018-03-01 23:46:02 +00:00
workers Merge branch '42643-persist-external-ip-of-ingress-controller-gke' into 'master' 2018-03-01 17:38:04 +00:00