aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorRichard Schneeman <richard.schneeman@gmail.com>2015-03-27 12:47:01 +0800
committerRichard Schneeman <richard.schneeman@gmail.com>2015-03-27 12:47:01 +0800
commite1b967e7e0edc0f59b49558d2c3d4afd9125a59f (patch)
treeefd0cd4299e903b298a689f8b749a2bbe94435a7 /guides/source
parentcd09261846053bb40f8c859b8644b28208b6d7b9 (diff)
parenta1671afcd420948db20ae7265f667966091c79e9 (diff)
downloadrails-e1b967e7e0edc0f59b49558d2c3d4afd9125a59f.tar.gz
rails-e1b967e7e0edc0f59b49558d2c3d4afd9125a59f.tar.bz2
rails-e1b967e7e0edc0f59b49558d2c3d4afd9125a59f.zip
Merge pull request #19541 from jonatack/warn-on-loading-large-query-sets
[skip ci] Update configuring.md with #18846
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/configuring.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 67285030a9..6f32e6484f 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -309,6 +309,11 @@ All these configuration options are delegated to the `I18n` library.
* `config.active_record.belongs_to_required_by_default` is a boolean value and controls whether `belongs_to` association is required by default.
+* `config.active_record.warn_on_records_fetched_greater_than` allows setting a
+ warning threshold for query result size. If the number of records returned
+ by a query exceeds the threshold, a warning is logged. This can be used to
+ identify queries which might be causing memory bloat.
+
The MySQL adapter adds one additional configuration option:
* `ActiveRecord::ConnectionAdapters::MysqlAdapter.emulate_booleans` controls whether Active Record will consider all `tinyint(1)` columns in a MySQL database to be booleans and is true by default.