|  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: 2020-10-19 16:38 UTC
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: Suspended Package: mongo (PECL)
PHP Version: 7.0.2 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
31 + 42 = ?
Subscribe to this entry?

 [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


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-19 16:38 UTC]
-Status: Open +Status: Suspended
 [2020-10-19 16:38 UTC]
PECL/mongo[1] is unmaintained OSS software; feel free to apply as
maintainer and to develop the package further.  For the time
being, I'm closing this ticket.

[1] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 04:01:28 2024 UTC