• J
    Add `config.active_record.warn_on_records_fetched_greater_than` option · 4d6fbe29
    Jason Nochlin 提交于
    When set to an integer, a warning will be logged whenever a result set
    larger than the specified size is returned by a query. Fixes #16463
    
    The warning is outputed a module which is prepended in an initializer,
    so there will be no performance impact if
    `config.active_record.warn_on_records_fetched_greater_than` is not set.
    4d6fbe29
core.rb 17.9 KB