-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(dal): Reduce default Mongo connections #6901
Conversation
ff183a2
to
9531ea8
Compare
✅ Deploy Preview for novu-stg-vite-dashboard-poc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
libs/dal/src/dal.service.ts
Outdated
@@ -1,16 +1,16 @@ | |||
import mongoose, { Connection, ConnectOptions } from 'mongoose'; | |||
|
|||
export const baseConfig: ConnectOptions = { | |||
autoIndex: process.env.MONGO_AUTO_CREATE_INDEXES === 'true', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change for the self-hosted users do we want to use AUTO_CREATE_INDEXES as well for couple of version and then deprecated it?
autoIndex: process.env.MONGO_AUTO_CREATE_INDEXES === 'true', | |
autoIndex: process.env.AUTO_CREATE_INDEXES === 'true' || process.env.MONGO_AUTO_CREATE_INDEXES === 'true', |
9531ea8
to
27109e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
c7c3a5a
to
dd62dac
Compare
3d52d91
to
331a08a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
What changed? Why was the change needed?
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer