how to use maxPoolSize with mongodb-php driver version 1.2.0

361 views Asked by At

How to use maxPoolSize with mongodb-php driver version 1.2.0.

Does new mongodb php driver use connection pooling, if yes then how to change it?

1

There are 1 answers

2
Webdev On

You can use

Mongo::setPoolSize(1);

for this.

For explanation please refer :-

MongoDb:setpoolsize