|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71493 MongoClient (PHP 5) vs MongoDB (PHP 7). Why MongoClient is better?
Submitted: 2016-02-01 17:34 UTC Modified: -
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: ephramd at gmail dot com Assigned:
Status: Open Package: mongo (PECL)
PHP Version: 7.0.2 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ephramd at gmail dot com
New email:
PHP Version: OS:


 [2016-02-01 17:34 UTC] ephramd at gmail dot com
I  don't like the new mongo, MongoDB require several libs in PHP7.

MongoClient (deprecated) in php 5 is much more comfortable and lightweight!

I have decided to launch a script and comparing the two versions and the results are quite surprising:

MongoDB (PHP 7.0.2) = 0.0213 seconds
Mongo/MongoClient (PHP 5.6.17) = 0.0063 seconds

Anyone else experience this problem? I can't find any benefit in using the new version of MongoDB, all are problems!

The problem is the difference in performance between Mongo (which only has low level libraries ) and MongoDB (which has high-level libraries ) that makes dependence have phplib and composer.

Test script:


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Mar 30 21:01:23 2020 UTC