php.net |  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
Votes:1
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
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:
Package:
Bug Type:
Summary:
From: ephramd at gmail dot com
New email:
PHP Version: OS:

 

 [2016-02-01 17:34 UTC] ephramd at gmail dot com
Description:
------------
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:
---------------
http://stackoverflow.com/questions/35135464/comparision-between-mongoclient-and-mongodb-why-mongoclient-is-better?noredirect=1#comment57992102_35135464


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-19 16:38 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2020-10-19 16:38 UTC] cmb@php.net
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] <https://pecl.php.net/package/mongo>
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 11:01:23 2020 UTC