Commit 3117a357 authored by Leandro Gomes's avatar Leandro Gomes Committed by Andreas Brandl

Use empty-query by default to check database connection

parent 7c348b99
---
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