So I made a bunch of database optimizations last week to fix some CPU issues we were having on our database server. We got a DB trace that covered an hour of time and I fixed up every query that was running longer that 25 seconds (turns out it was just two). I deployed those fixes (one was a new index and the other was a change to a sproc) Wednesday and Thursday of last week.
I was back east at a wedding all weekend so I didn't use the site much. Orcs didn't send us any "THE SKY IS FALLING!!!" emails so at least I didn't break it. You guys notice a decrease in random failures and crashes at all? Is the site speedier?
If you're not seeing improvements, is there anything that is consistently slow? We have some app pools that like to overzealously recycle so that's probably the cause for random errors but if there's anything that you can repro let me know.
Fixing up SQL queries and staring at Query Plans is a strange kind of fun. Taking a query from an estimated cost of 178 to 3 is quite the ego booster (as I'm sure everyone on the team can tell you as I've bragged about it 5 or 6 times). Thanks to
Inside Microsoft SQL Server 2005: T-SQL Querying for my newfound SQL tuning powers.