Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
a problem about pool size
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Li Jiang  
View profile  
 More options Sep 16 2012, 9:12 pm
From: Li Jiang <jiangli...@gmail.com>
Date: Sun, 16 Sep 2012 18:12:42 -0700 (PDT)
Local: Sun, Sep 16 2012 9:12 pm
Subject: a problem about pool size

I used the node-mongodb-native in some projects, i confused by a problem
that when and how to use poolsize in MongoDB native driver;can  you help me
to resolve this problem? Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wes Freeman  
View profile  
 More options Sep 16 2012, 9:48 pm
From: Wes Freeman <freeman....@gmail.com>
Date: Sun, 16 Sep 2012 21:48:21 -0400
Local: Sun, Sep 16 2012 9:48 pm
Subject: Re: a problem about pool size

It's for when you want to be able to use the connection to do more than one
query at a time.

This is a bit tricky, because you do queries asynchronously, so you might
end up doing more than one at a time unintentionally.

Wes


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom  
View profile  
 More options Sep 16 2012, 9:53 pm
From: Tom <tommed...@gmail.com>
Date: Mon, 17 Sep 2012 08:53:52 +0700
Local: Sun, Sep 16 2012 9:53 pm
Subject: Re: a problem about pool size
Are you sure Wes? I was of the impression that it actually creates
multiple connections with the database servers, thereby achieving
asynchornous queries. With one connection you cannot perform queries
asynchronously.

I would consider this normal behavior. In fact I believe that the
default pool size should be bigger than one, because the current
setting of one may cause people to rely on the accompanying
"unintentioned synchronousness".

Tom


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wes Freeman  
View profile  
 More options Sep 16 2012, 10:04 pm
From: Wes Freeman <freeman....@gmail.com>
Date: Sun, 16 Sep 2012 22:03:48 -0400
Local: Sun, Sep 16 2012 10:03 pm
Subject: Re: a problem about pool size

I know that by default it only uses one connection, but maybe it can handle
multiple queries at once without safe:true. Maybe I'm thinking of when you
use safe:true and callbacks... it's been a while since I was deeper in the
driver. Anyone else want to chime in?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wes Freeman  
View profile  
 More options Sep 16 2012, 10:11 pm
From: Wes Freeman <freeman....@gmail.com>
Date: Sun, 16 Sep 2012 22:11:30 -0400
Local: Sun, Sep 16 2012 10:11 pm
Subject: Re: a problem about pool size

Sorry Tom, I totally misread your comment. Yes, it (pooling) is for having
multiple connections open to the server so that you can run multiple
queries/inserts/updates at the same time. It actually does create multiple
connections with connection pooling enabled. That's what I meant to say in
my initial response, but I was less than clear.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
christkv  
View profile  
 More options Sep 16 2012, 11:03 pm
From: christkv <chris...@gmail.com>
Date: Sun, 16 Sep 2012 20:03:47 -0700 (PDT)
Local: Sun, Sep 16 2012 11:03 pm
Subject: Re: a problem about pool size

The driver defaults to 5 connections these days (poolSize:5).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wes Freeman  
View profile  
 More options Sep 17 2012, 12:46 am
From: Wes Freeman <freeman....@gmail.com>
Date: Mon, 17 Sep 2012 00:46:36 -0400
Local: Mon, Sep 17 2012 12:46 am
Subject: Re: a problem about pool size

Oh, cool. That's good to know.

Wes


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Li Jiang  
View profile  
 More options Sep 17 2012, 9:42 pm
From: Li Jiang <jiangli...@gmail.com>
Date: Mon, 17 Sep 2012 18:42:00 -0700 (PDT)
Subject: Re: a problem about pool size

Thank you for your answers.I want to know the poolsize how to work in the
mongodb.Thanks again
在 2012年9月17日星期一UTC+8上午9时12分42秒,Li Jiang写道:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »