jdesboeufs / connect-mongo

MongoDB session store for Express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not using "mongooseConnection" cause any issues with mongoose?

skeddles opened this issue · comments

My project was using the deprecated mongooseConnection option. I tried to use the .getClient() method, but couldn't figure that out, so instead opted for the first option which was just supplying the mongoUrl option instead, which I'm also using in mongoose.connect(). After updating this, my site seems to be working normally.

My question is there any downside to this? Will it cause any issues with mongoose?

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

is there any downside to this?

You will end up with one more connection to Mongo so should be using a little more memory. How much of an issue that is only depends on your environment.

Will it cause any issues with mongoose?

No. It's a separate connection so Mongoose shall not be affected.

Cheers

thanks!