Ignore SQL CACHE hits in Sherlock
This commit is contained in:
parent
64c9d7805d
commit
e3b626dae8
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue