Commit 4250f38f authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'sherlock-ignore-cache' into 'master'

Ignore SQL CACHE hits in Sherlock

See merge request gitlab-org/gitlab-ce!15182
parents 0b97aa5e e3b626da
......@@ -89,7 +89,9 @@ module Gitlab
ActiveSupport::Notifications.subscribe('sql.active_record') do |_, start, finish, _, data|
next unless same_thread?
track_query(data[:sql].strip, data[:binds], start, finish)
unless data.fetch(:cached, data[:name] == 'CACHE')
track_query(data[:sql].strip, data[:binds], start, finish)
end
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