Hello folks,
I'm working on a project where a PHP dialog system is communicating with a Microsoft SQL Server 2008 and I need more speed on the PHP side.
After profiling my PHP scripts, I discovered that a call to mssql_connect() needs about 200 milliseconds on that particular system. For some simple dialogs this is about 60% of the whole script runtime. So I could gain a huge performance boost by speeding up this call.
I already assured that only one single connection handle is produced for every request to my PHP scripts.
Is there a way to speed up the initial connection with SQL Server? Some restrictions apply, though:
- I can't use PDO (there's a lot of legacy code here that won't work with it)
- I don't have access to the SQL Server configuration, so I need a PHP-side solution
- I can't upgrade to PHP 5.3.X, again because of crappy legacy code.