class method
self.warn_on_records_fetched_greater_than
Ruby on Rails 7.2.3
Since v7.2.3 Last seen in v7.2.3Specify a threshold for the size of query result sets. If the number of records in the set exceeds the threshold, a warning is logged. This can be used to identify queries which load thousands of records and potentially cause memory bloat.
Source
# File activerecord/lib/active_record.rb, line 367
singleton_class.attr_accessor :warn_on_records_fetched_greater_than
Defined in activerecord/lib/active_record.rb line 367
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord