Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8303433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:32:25+00:00 2026-06-08T17:32:25+00:00

When using the native mongo.db driver for node, should I open 1 connection per

  • 0

When using the native mongo.db driver for node, should I open 1 connection per application, per page “serve”, or open and close it whenever I need?

I’ve seen a few older answers but I know the project is always developing so I want to know what it the status today.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:32:27+00:00Added an answer on June 8, 2026 at 5:32 pm

    This isn’t a situation that will change; opening a new connection to a server will be less performant than using an established connection.

    Note: this is the general case for server applications, and not specific to MongoDB.

    Typical overhead includes:

    • resolving server names to IPs
    • establishing network connection to server
    • per connection memory allocated on the server

    For MongoDB in particular:

    • opening a new connection means a new socket connection and thread on the server
    • each connection (as of MongoDB 2.0) allocates 1Mb of RAM on the server (see also: Checking Memory Usage)
    • there is a per process limit on open files/connections (see also: Too Many Open Files)

    For the MongoDB Node.js driver you can take advantage of connection pooling by setting the poolSize in the constructor. A blog post with an example of using this: Node.js: Connection Pools and MongoDB.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently playing around with node.js and MongoDB using the node-mongo-native driver. I
Im having some issues with deleting an entry from mongo DB. Im using node-mongodb-native
As a preface, I'm using Node.js with Mongo-db-native. I'm also using GridFS to store
I am using native C++ with VSTS 2008. A quick question about virtual function.
What is the best method of using native menus in C#? Edit: I want
An informative-sounding blog post from 2006 states these facts about using native prepared statements
Is there a way to communicate with cmd (using native process) in adobe air.
I want to run script file on android Shell using Native C program. I
I am working with Amazon In-app-purchases for Android on flash using native extentions. So,
I just upgraded from tomcat 6.0.29 to 7.0.25 using native apr. Tomcat has crashed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.