Skip to content

Commit ac7bd33

Browse files
henrikfatkodima
andauthored
[ci skip] Add warning note to :source_location tag option (rails#55257)
Co-authored-by: fatkodima <[email protected]>
1 parent 2b987c3 commit ac7bd33

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

activerecord/lib/active_record/query_logs.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ module ActiveRecord
2828
# * +database+
2929
# * +source_location+
3030
#
31+
# WARNING: Calculating the +source_location+ of a query can be slow, so you should consider its impact if using it in a production environment.
32+
#
33+
# Also see {config.active_record.verbose_query_logs}[https://guides.rubyonrails.org/debugging_rails_applications.html#verbose-query-logs].
34+
#
3135
# Action Controller adds default tags when loaded:
3236
#
3337
# * +controller+

0 commit comments

Comments
 (0)