TogetherCrew / discord-bot

2 stars 1 forks source link

Memory Heap Issue due to mongoose connection #133

Closed Behzad-rabiei closed 7 months ago

Behzad-rabiei commented 7 months ago

Description:

In our recent implementation, which involves handling multiple database connections for different tenants using Mongoose, we've encountered a significant memory heap issue. This problem seems to be linked to the way we manage connections.

https://mongoosejs.com/docs/connections.html#multi-tenant-connections https://medium.com/brightlab-techblog/multitenant-node-js-application-with-mongoose-mongodb-f8841a285b4f