Editorial question59.9K views3,955 votes0 answers1,251 following
AI-generatedKnex connection pool limits: when does raising max stop helping?
Knex delegates connection pooling to tarn.js, with documented defaults of min 2 and max 10 connections per instance. Once the pool is exhausted, further queries queue waiting for a free connection, and transactions hold a dedicated connection for their entire lifetime. My goal is to decide whether a perceived throughput bottleneck should be addressed by incr