News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Shay Ben Moshe's Blog:
PDO Persistent Connection Analysis
June 28, 2011 @ 08:11:15

Shay Ben Moshe has a new post to his blog today looking at some of the benefits that using the persistent connections offered in PDO can have on your application.

PDO is an abstraction layer for database connections in PHP, and it became increasingly popular in the past few years. PDO gives us the option to use a persistent connection. If we don't use this option, a new connection is created for each request. If we do use this option, the connection is not closed at the end of the script, and it is then re-used by other script requests.

He shares the setup for his testing (hardware and MySQL configuration) and some of the results from his tests using the Apache ab tool for making web requests against an application. You'll need to download the archived file to see the results, though. It also includes the files he used to test with, comparing regular connections to the persistent ones.

0 comments voice your opinion now!
pdo persistent connection benchmark apache ab request


blog comments powered by Disqus

Similar Posts

Sara Goleman\'s Blog: PDO_User and the effects of Slide Driven Development

Gonzalo Ayuso's Blog: Performance analysis using bind parameters with PDO and PHP

Tecmint.com: Install Apache, MySQL 5.5.27 & PHP 5.4.7 on RHEL/CentOS 6.3/5.6 & Fedora 17-12

Rdavid.net: Test Results on Memory Usage of Zend Framework and Doctrine with APC

Evert Pot's Blog: iconv_substr vs mbstring_substr


Community Events











Don't see your event here?
Let us know!


facebook support release component security overview framework podcast install introduction symfony2 application code hack opinion language unittest composer hhvm package

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework