Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/application_record.rb')
-rw-r--r--app/models/application_record.rb4
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