![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Are there any special flags we're supposed to flip when we do a SQL 2008 installation? We've installed SQL 2008 on the same server as our production SQL 2000 server and we're seeing some extremely pathetic results running queries in SQL 2008. For example, I have a query that is relatively simple that joins 4 large tables together. I just ran it in SQL 2000 and it ran in 1 min 1 sec. It's been going for 45 minutes in SQL 2008 and it's still going. The dbs in both 2000 and 2008 are on the same arrays; tempdb is properly sized and made up of the same number of devices/sizes on both 2000 and 2008. At this point we strongly suspect something is wrong with the db or our SQL installation but we're not sure where to look. I ran a db reindex on the entire db and it hasn't helped. Does anyone have any insight into where the "turbo" switch is in 2008? ![]() Thanks, Andre |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I rebuild indexes in the maintenance plan, and from what I read, rebuilding indexes also updates stats. So do I still need to update stats after an index rebuild? |
#5
| |||
| |||
|
|
Are there any special flags we're supposed to flip when we do a SQL 2008 installation? We've installed SQL 2008 on the same server as our production SQL 2000 server and we're seeing some extremely pathetic results running queries in SQL 2008. For example, I have a query that is relatively simple that joins 4 large tables together. I just ran it in SQL 2000 and it ran in 1 min 1 sec. It's been going for 45 minutes in SQL 2008 and it's still going. The dbs in both 2000 and 2008 are on the same arrays; tempdb is properly sized and made up of the same number of devices/sizes on both 2000 and 2008. At this point we strongly suspect something is wrong with the db or our SQL installation but we're not sure where to look. I ran a db reindex on the entire db and it hasn't helped. Does anyone have any insight into where the "turbo" switch is in 2008? ![]() Thanks, Andre |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Red flag perhaps but we're a small shop and don't have extra servers sitting around waiting to play with new software. Additionally wewanted to see what performance will be like in 2008 on our Prod box. We're running all of our 2008 testing in off-hours, when we know SQL 2000 is quiet. I completely agree with you about calling 1 minute good. My goal is always for sub-second response time, but there are a number of variables going on here. Simply due to workload we have prioritized some items ahead of others. We knew, or hoped, that going to SQL 2008 will improve things, and we're also planning a total db redesign. I ended up running my query thru the db tuning engine. It recommended one index and several statistics. After I had applied these the query now runs in 3 seconds. While this is great, and a huge improvement from SQL 2000, it just means that we have a lot of work ahead of us trying to tune all of our existing procs. To answer a question you had, all of our work is done in stored procs. We happened to rip the query out of one that was taking forever so we could analyze it. My comparisons times that I posted were for a raw query run on both SQL 2000 and 2008, but we never pass dynamic sql to the db. This was just done for testing/tuning purposes. Thanks for your response Andrew. I value your input and enjoy your articles. Andre |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Good to know, and good advice, thank you. Andre |
![]() |
| Thread Tools | |
| Display Modes | |
| |