News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Evert Pot's Blog:
Forking and MySQL connections
December 03, 2008 @ 12:07:32

Evert Pot has a quick post showing how you can make your code fork MySQL connections for better performance.

For some of our long-running processes we use PHP. It makes total sense from our perspective, because we can re-use all our existing business logic from our main PHP web application. To make things more efficient, I recently started some work on using forks and have a couple of worker processes around.

His sample script makes use of the pcntl_fork and pcntl_wait functions in PHP to spawn off processes that will be closed off when no longer needed.

0 comments voice your opinion now!
fork mysql connection pcntlfork pcntlwait



Similar Posts

Edin Kadribasic's Blog: PHP 4.4.6-win32 with MySQL 5.0.37

DevShed: Iterators in the Simplest Sense - Traversing Different Data Structures

Stoyan Stefanov's Blog: Performance tunning with PEAR::DB

Informit.com: Alternatives to LAMP

ThinkPHP Blog: Who wants to connect PHP to SAP?


Community Events









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


PHP5 ajax releases release developer application cakephp code conference example database book zendframework PEAR framework zend mysql security job package

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