note 113430 added to mongoclient.construct

From: Date: Wed, 09 Oct 2013 16:56:29 +0000
Subject: note 113430 added to mongoclient.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-196512@lists.php.net to get a copy of this message
HOLY MOLY, 100 to 200 times instant speed boost in one small change. "In version 1.0.9+, you can use a UNIX domain socket to connect to an instance of MongoDB running locally. This should be slightly faster than using a network connection." is an EXTREME understatement. Just trying out stuff, playing around, etc., we changed from MongoClient( 'mongodb://pri.eastghost.com:27017' etc) to MongoClient ( 'mongodb:///tmp/mongodb-27017.sock' etc) and saw instant 100x-200x speed boost, all else untouched. page times went from 700 - 1400 (as in 1.4 seconds) to 7 as in milliseconds. mongo driver 1.4.1 (for apache 2.6) ---- Server IP: 64.71.164.2 Probable Submitter: 74.96.181.211 ---- Manual Page -- http://php.net/manual/en/mongoclient.construct.php Edit -- https://master.php.net/note/edit/113430 Del: integrated -- https://master.php.net/note/delete/113430/integrated Del: useless -- https://master.php.net/note/delete/113430/useless Del: bad code -- https://master.php.net/note/delete/113430/bad+code Del: spam -- https://master.php.net/note/delete/113430/spam Del: non-english -- https://master.php.net/note/delete/113430/non-english Del: in docs -- https://master.php.net/note/delete/113430/in+docs Del: other reasons-- https://master.php.net/note/delete/113430 Reject -- https://master.php.net/note/reject/113430 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#196512) next »