class method self.warn_on_records_fetched_greater_than

Ruby on Rails 7.2.3.2

Since v7.2.3.2 Last seen in v7.2.3.2

Specify 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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close