summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuji Yaginuma <yuuji.yaginuma@gmail.com>2018-05-04 23:30:19 +0000
committerYuji Yaginuma <yuuji.yaginuma@gmail.com>2018-05-04 23:30:19 +0000
commit42d191c9d6c772afcfa67f986406075337c6cc3d (patch)
tree1ee90b3e48deb769aa1c44abc1f167ef7f8ac9a1
parent5e798f25daa978384aba1ad3aa88d3607afc4f36 (diff)
downloadgitlab-ce-42d191c9d6c772afcfa67f986406075337c6cc3d.tar.gz
Fix link for `query_recorder.rb`
This file is now under `helpers`. Ref: https://gitlab.com/gitlab-org/gitlab-ce/commit/023d4f6f2f3d88d0966fe01e6ef921fd03a309fe
-rw-r--r--doc/development/query_recorder.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/development/query_recorder.md b/doc/development/query_recorder.md
index 12e90101139..26d3355e94d 100644
--- a/doc/development/query_recorder.md
+++ b/doc/development/query_recorder.md
@@ -2,7 +2,7 @@
QueryRecorder is a tool for detecting the [N+1 queries problem](http://guides.rubyonrails.org/active_record_querying.html#eager-loading-associations) from tests.
-> Implemented in [spec/support/query_recorder.rb](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/spec/support/query_recorder.rb) via [9c623e3e](https://gitlab.com/gitlab-org/gitlab-ce/commit/9c623e3e5d7434f2e30f7c389d13e5af4ede770a)
+> Implemented in [spec/support/query_recorder.rb](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/spec/support/helpers/query_recorder.rb) via [9c623e3e](https://gitlab.com/gitlab-org/gitlab-ce/commit/9c623e3e5d7434f2e30f7c389d13e5af4ede770a)
As a rule, merge requests [should not increase query counts](merge_request_performance_guidelines.md#query-counts). If you find yourself adding something like `.includes(:author, :assignee)` to avoid having `N+1` queries, consider using QueryRecorder to enforce this with a test. Without this, a new feature which causes an additional model to be accessed will silently reintroduce the problem.