Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(guidelines): size the database pool with DATABASE_POOL_SIZE
Yudhi Armyndharisf54ff4532a33
diff --git a/docs/08-development-guidelines.md b/docs/08-development-guidelines.mdindex 244877575..a2ea46689 100644--- a/docs/08-development-guidelines.md+++ b/docs/08-development-guidelines.md@@ -1022,18 +1022,11 @@ export class EngineTeardownService {**Solution:**-```typescript-// config/typeorm.config.ts-{- type: 'postgres',- // Limit pool size- extra: {- max: 20, // Default is 10- connectionTimeoutMillis: 5000,- idleTimeoutMillis: 30000,- },-}-```+Set `DATABASE_POOL_SIZE` in `.env` (default 10). It becomes the pool `max` of the PostgreSQL data+connection, both in the app and in the migration CLI. Keep the pool size times the number of+replicas below the server's `max_connections`. See+[12 - Troubleshooting](./12-troubleshooting-faq.md#issue-slow-api-response) for the related+timeouts.#### Migration Fails