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
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:
MUST BE VALID
Solve the problem:
41 + 25 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC