This blog is part of our Rails 5 series.
With large data set we can run into
memory issue. Here is an example.
Rails 5 adds warning when loading large data set
To mitigate issue shown above
Rails 5 has added
When this configuration is set to an integer value,
any query that returns the number of records greater than
the set limit, logs a warning.
This helps us find areas
where potential problems exist and then we can
replace inefficient queries with better ones.