Skip to content
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

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

SokratisVidros
Copy link
Contributor

What changed? Why was the change needed?

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

netlify bot commented Nov 8, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit 331a08a
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/673202580477540008ddc9ef
😎 Deploy Preview https://deploy-preview-6901--novu-stg-vite-dashboard-poc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -1,16 +1,16 @@
import mongoose, { Connection, ConnectOptions } from 'mongoose';

export const baseConfig: ConnectOptions = {
autoIndex: process.env.MONGO_AUTO_CREATE_INDEXES === 'true',
Copy link
Contributor

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?

Suggested change
autoIndex: process.env.MONGO_AUTO_CREATE_INDEXES === 'true',
autoIndex: process.env.AUTO_CREATE_INDEXES === 'true' || process.env.MONGO_AUTO_CREATE_INDEXES === 'true',

Copy link
Contributor

@djabarovgeorge djabarovgeorge left a comment

Choose a reason for hiding this comment

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

🚀

libs/dal/src/dal.service.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@rifont rifont left a comment

Choose a reason for hiding this comment

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

💯

@SokratisVidros SokratisVidros merged commit 97d6739 into next Nov 11, 2024
37 of 38 checks passed
@SokratisVidros SokratisVidros deleted the reduce_mongo_connections branch November 11, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants