d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Site Went Slow After Sql Server Migration
Add Reply New Topic New Poll
Member
Posts: 8,635
Joined: Dec 28 2007
Gold: 87.00
Jun 4 2013 02:26am
Hi,

our php based site went really slow after moving from sql server 2005 to sql server 2012. Only changes made to site are mapping to new sql server in define file.

Any ideas what coould cause this? Or how to fix this issue?

Thanks.
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Jun 4 2013 10:50am
Member
Posts: 8,635
Joined: Dec 28 2007
Gold: 87.00
Jun 4 2013 11:19pm
Quote (0n35 @ 4 Jun 2013 18:50)


Have done these steps but no luck.

Same page load took less than 1 second on sql server 2005, in sql server 2012 same load takes around 10 seconds. There must be something else than just slowiness of sql server 2012. :l
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jun 4 2013 11:30pm
Quote (vittujenkevat @ Jun 5 2013 01:19am)
Have done these steps but no luck.

Same page load took less than 1 second on sql server 2005, in sql server 2012 same load takes around 10 seconds. There must be something else than just slowiness of sql server 2012. :l


have you verified the sql is taking that long and not something else? i assume all your indexes/partitions/etc are there?
Member
Posts: 8,635
Joined: Dec 28 2007
Gold: 87.00
Jun 5 2013 02:20am
Quote (carteblanche @ 5 Jun 2013 07:30)
have you verified the sql is taking that long and not something else? i assume all your indexes/partitions/etc are there?


If I run the same queries directly in the database they are done in 0.05 second or less.
Member
Posts: 2,612
Joined: Nov 8 2005
Gold: 90.00
Jun 5 2013 10:19am
Have you tried memcached yet?

MSSQL isn't the best choice for a backend. Both costly to maintain and license.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jun 5 2013 10:43am
Quote (vittujenkevat @ Jun 5 2013 04:20am)
If I run the same queries directly in the database they are done in 0.05 second or less.


there is software you can use that will tell you the params for every sp, every sql statement, execution times for each of them, graphs, etc. are you doing anything like that? or just assuming it's the database?
Member
Posts: 8,635
Joined: Dec 28 2007
Gold: 87.00
Jun 5 2013 10:44am
Quote (notFrench @ 5 Jun 2013 18:19)
Have you tried memcached yet?

MSSQL isn't the best choice for a backend.  Both costly to maintain and license.


Havent tried this yet, have to take a look at it when I have time again. We have all the licenses already as its our companys production database.

Quote (carteblanche @ 5 Jun 2013 18:43)
there is software you can use that will tell you the params for every sp, every sql statement, execution times for each of them, graphs, etc. are you doing anything like that? or just assuming it's the database?


No I havent used a software like that. Do you have any good software in mind?

What I did was trying the same query directly in database that runs in site. Also checked that ping is the same between servers.

This post was edited by vittujenkevat on Jun 5 2013 10:47am
Member
Posts: 8,635
Joined: Dec 28 2007
Gold: 87.00
Jun 6 2013 06:44am
Found the problem now. It was not the sql server itself causing the problem, it was network settings of server running the sql server 2012. After disabling Large Send Offload Version 2 and TCP Checksum Offload settings queries are fast like it was with the sql server 2005.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll