diff options
Diffstat (limited to 'app/models/application_record.rb')
-rw-r--r-- | app/models/application_record.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/application_record.rb b/app/models/application_record.rb index bcd8bdd6638..b64e6c59817 100644 --- a/app/models/application_record.rb +++ b/app/models/application_record.rb @@ -7,6 +7,10 @@ class ApplicationRecord < ActiveRecord::Base self.abstract_class = true + # We should avoid using pluck https://docs.gitlab.com/ee/development/sql.html#plucking-ids + # but, if we are going to use it, let's try and limit the number of records + MAX_PLUCK = 1_000 + alias_method :reset, :reload def self.without_order |