summaryrefslogtreecommitdiff
path: root/lib/gitlab/database/count.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/database/count.rb')
-rw-r--r--lib/gitlab/database/count.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/database/count.rb b/lib/gitlab/database/count.rb
index 5f549ed2b3c..ea6529e2dc4 100644
--- a/lib/gitlab/database/count.rb
+++ b/lib/gitlab/database/count.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
# For large tables, PostgreSQL can take a long time to count rows due to MVCC.
# We can optimize this by using the reltuples count as described in https://wiki.postgresql.org/wiki/Slow_Counting.
module Gitlab