Pool-Size von 5 auf 20 erhöht (Connection-Exhaustion bei parallelen Finanzplan-Queries + Compute + API-Calls) KPIs/Charts Tabs laden keine DB-Daten (virtual tabs, Daten sind hardcoded) → sofortiges Rendering Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
11 lines
264 B
TypeScript
11 lines
264 B
TypeScript
import { Pool } from 'pg'
|
|
|
|
const pool = new Pool({
|
|
connectionString: process.env.DATABASE_URL || 'postgres://breakpilot:breakpilot123@localhost:5432/breakpilot_db',
|
|
max: 20,
|
|
idleTimeoutMillis: 30000,
|
|
connectionTimeoutMillis: 10000,
|
|
})
|
|
|
|
export default pool
|