Skip to content

Enable warn_on_records_fetched_greater_than in dev

Dmitry Gruzd requested to merge warn-on-records-fetched-greater-than into master

What does this MR do?

This MR enables config.active_record.warn_on_records_fetched_greater_than in development mode. This setting was introduced in Rails 5 and could help to prevent memory bloat.

If the result set loaded is greater than the limit, a warning is posted in the log.

Links

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖

Merge request reports