fuel / docs

Fuel PHP Framework - Fuel v1.x documentation
http://fuelphp.com/docs
Other
168 stars 234 forks source link

Updated param descriptions and added example Mongo over UNIX Sockets #672

Closed allella closed 10 years ago

allella commented 10 years ago

This is optional, but also very easy for someone to enable via their config/db.php.

UNIX sockets tend to be faster than TCP/IP, so letting folks know about this option is encouraged. I'm using it in a stage environment and it has been seamless after changing just the hostname and port, as mentioned in the proposed pull request.

Direct UNIX socket connections from the PHP PECL Mongo driver have been around since version 2010-08-06 in version 1.0.9 .

PHP has documentation for socket-based connections. http://php.net/manual/en/mongo.connecting.uds.php

Also, Mongo has defaulted to running a UNIX socket since at least version 2.2 http://docs.mongodb.org/v2.2/reference/configuration-options/#nounixsocket

emlynwest commented 10 years ago

Performance hints are always good, thanks!