Need some help with sqlsrv |
[eluser]tcampion[/eluser]
I'm seeing performance issue and suspect I just have something misconfigured. When I connect to my db using the following php script it responds within 2 seconds with all the data(3000+ worth of results). Code: <?php When I run the following it takes approximately 3 minutes to return the same results. My code igniter DB information looks like this Code: app/config/database I've swapped out the sqlsrv driver based on a few threads I read but none of that seems to improve performance any at all. The DB Im connecting to is sql server 2005, and im running codeigniter from wamp on my local win xp machine. I've installed sqlncli.msi, and microsoft drivers for php SQLSRV20.EXE in my php/ext dir extension=php_sqlsrv_53_ts_vc9.dll is in the php.ini. Happy to try any suggestion Please tell me Im just overlooking something simple.
[eluser]smilie[/eluser]
Not sure what the problem could be, but you could use these two: http://ellislab.com/codeigniter/user-gui...hmark.html and http://ellislab.com/codeigniter/user-gui...iling.html To try to trace the origin of a problem. Also, I really do not approach where you scoop data in the model itself. I preffer: Code: class Customer extends CI_Model{ This will return it all. Then in your controller, or even in the view you can do: echo $result['dbValue'] and so on... Cheers, Smilie |
Welcome Guest, Not a member yet? Register Sign In |