Since which version pooling is available ? I am using v 0.9.4 , will
it work with it ?
Regards,
Samyak
You are superb with the prompt reply, always, thanks you for that !!
I am creating single db instance where autoreconnect is set to true as
well as strict mode is also set to true. I am using single db object
through out the life cycle of application. Here is the relevant code
... https://gist.github.com/1092746
Some time and only some time, I am getting an error during
getCollection method, saying collection someCollectionName doesn't
exist.
e.g.
{ stack: [Getter/Setter],
arguments: undefined,
type: undefined,
message: 'Collection items does not exist. Currently in strict mode.' }
When I encounter this error the collection indeed exists. This error
is not something which I get all the time. Sometime it is a successful
getCollection operation but sometime it is with this error. When this
strange error occurs, I am also putting output of db object, to see
the status of the connection using db.state, and it is showing to be
'connected' only.
Also, sometime the execution of node itself will get stuck up on this
very method. That is to say any of the successful scenario or the
erroneous/exceptional scenario will not be executed. It just freezes.
Further, I tested it with v 0.9.4 with no connection pulling and with
latest v 0.9.6-7 and connection pooling set to poolSize: 2, as
recommended.
What could be wrong in my code ?
Regards,
Samyak