Commit 16f7af69 authored by Aakriti Gupta's avatar Aakriti Gupta

Apply 1 suggestion(s) to 1 file(s)

parent 9a281aa6
...@@ -17,7 +17,7 @@ module Analytics ...@@ -17,7 +17,7 @@ module Analytics
def merge_requests_count def merge_requests_count
@merge_requests_count ||= @merge_requests_count ||=
# We want to make sure the load of the following query # We want to make sure the load of the following query
# does not land on the read replica instead of the primary db # lands on the read replica instead of the primary db
current_load_balancing_session.use_replicas_for_read_queries do current_load_balancing_session.use_replicas_for_read_queries do
count_service.new(@group, @current_user, params).count count_service.new(@group, @current_user, params).count
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment