Commit 71aee14b authored by Andreas Brandl's avatar Andreas Brandl

Merge branch 'activerecord_empty_query_default_true' into 'master'

Use empty-query by default to check database connection

See merge request gitlab-org/gitlab!54366
parents 408a060b 3117a357
---
title: Use empty-query by default to check database connection
merge_request: 54366
author: Leandro Gomes @leandrogs
type: performance
......@@ -2,6 +2,6 @@
# # frozen_string_literal: true
if Gitlab::Utils.to_boolean(ENV['ENABLE_ACTIVERECORD_EMPTY_PING'], default: false)
if Gitlab::Utils.to_boolean(ENV['ENABLE_ACTIVERECORD_EMPTY_PING'], default: true)
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(Gitlab::Database::PostgresqlAdapter::EmptyQueryPing)
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment