Skip to content

Conversation

@SamuelGoulart
Copy link
Contributor

Description

This PR adds timeout and pool settings to both the Mongoose and Knex connections, ensuring greater control over connection management and improved system stability.

Principal Changes

  • MongoDB (Mongoose): added poolSize settings, connection timeouts, and other settings

  • Knex: added pool settings (min, max), as well as timeouts related to connection creation, acquisition, and destruction.

Motivation

The default settings do not meet the performance needs in higher load environments.

Copy link
Owner

@lucassm02 lucassm02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SamuelGoulart, thanks for the changes!

@lucassm02 lucassm02 merged commit e71287e into lucassm02:main Dec 3, 2025
0 of 3 checks passed
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.

2 participants