Very slow performance: Best way to implement SQLSRV Driver?
-
Hi,
I’ve recently got this plugin working for site which is using an external userbase for authentication. The external db type is MSSQL (not supported by PHP 5.3+), and I’ve made some changes to the plugin to support the SQLSRV database driver:
//$url = strtolower($driver)."://".get_option('pp_db_user').":".get_option('pp_db_pw')."@".get_option('pp_host').$port."/".get_option('pp_db'); $url = "sqlsrv://".get_option('pp_db_user').":".get_option('pp_db_pw')."@".get_option('pp_host').$port."/".get_option('pp_db');
The plugin didn’t start working until we removed the code for the unicode query.
So it’s now working, users are authenticating completely fine, etc, but authentication(accessing login page, logging in, logging out, etc) takes a considerable amount of time, usually between 15-20 seconds of wait time for logging in and out.
Are there any suggestions for improving performance while using this connection method? Thanks.
- The topic ‘Very slow performance: Best way to implement SQLSRV Driver?’ is closed to new replies.