mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 04:36:11 +10:00
This can be used to track down where queries originate from, regardless of whether they're caused by N+1 problems or not. This can be enabled by setting the environment variable ENABLE_QUERY_TRACE to a non-empty value (e.g. "true").
6 lines
114 B
Ruby
6 lines
114 B
Ruby
if ENV['ENABLE_QUERY_TRACE']
|
|
require 'active_record_query_trace'
|
|
|
|
ActiveRecordQueryTrace.enabled = 'true'
|
|
end
|