The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Set minPoolSize to 0 to avoid periodically waking up serverless DBs (#62514)
Marcos34177f020553
diff --git a/src/metabase/driver/sql_jdbc/connection.clj b/src/metabase/driver/sql_jdbc/connection.cljindex 1434ebf10c8..344ae513be7 100644--- a/src/metabase/driver/sql_jdbc/connection.clj+++ b/src/metabase/driver/sql_jdbc/connection.clj@@ -94,10 +94,10 @@"acquireRetryAttempts" (if driver-api/is-test? 1 0);; [From dox] Seconds a Connection can remain pooled but unused before being discarded."maxIdleTime" (* 3 60 60) ; 3 hours- "minPoolSize" (if (:router-database-id database)- 0 1)- "initialPoolSize" (if (:router-database-id database)- 0 1)+ ;; In the case of serverless databases, we don't want to periodically+ ;; wake them up to keep a connection open (#58373).+ "minPoolSize" 0+ "initialPoolSize" 0"maxPoolSize" (driver.settings/jdbc-data-warehouse-max-connection-pool-size);; [From dox] If true, an operation will be performed at every connection checkout to verify that the connection is;; valid. [...] ;; Testing Connections in checkout is the simplest and most reliable form of Connection testing,