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: -
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: Open Package: mongo (PECL)
PHP Version: 7.0.2 OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Mar 28 20:01:23 2020 UTC