Skip to content

feat: optimize database connection pooling#15

Merged
maulik-mk merged 1 commit intodevfrom
feat/db-optimization
Apr 1, 2026
Merged

feat: optimize database connection pooling#15
maulik-mk merged 1 commit intodevfrom
feat/db-optimization

Conversation

@maulik-mk
Copy link
Copy Markdown
Owner

This pull request updates the database connection configuration to improve connection pooling and security settings. The main changes involve updating the example .env file with a new DATABASE_URL and adjusting the PostgreSQL connection pool settings in both the application and test code.

Configuration updates:

  • .env.example: Updated the DATABASE_URL to use a Supabase connection string format, clarifying the expected structure and credentials.

Database connection pool improvements:

  • src/infrastructure/db/db.ts: Modified the PostgreSQL pool configuration in PostgresVideoRepository to set connection pooling parameters (max, idleTimeoutMillis, connectionTimeoutMillis) and removed the custom ssl configuration.
  • test/queue-job.test.local.ts: Updated the test database pool configuration to match the new connection pooling parameters and removed the custom ssl option.

@maulik-mk maulik-mk merged commit 4545375 into dev Apr 1, 2026
1 check passed
maulik-mk added a commit that referenced this pull request Apr 5, 2026
- For more details PR : #15, #16
@maulik-mk maulik-mk deleted the feat/db-optimization branch April 5, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant