Viewing 15 posts - 19,471 through 19,485 (of 22,219 total)
How about Selectivity AND Usage.
Gail sums up all the reasons better than I will. You need to take both into account when designing your indexes. Simple usage is not enough...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 14, 2008 at 10:41 am
Excellent. Well done. I'll have to see if we can use this one on our servers.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 14, 2008 at 6:54 am
The processor issue could be that parallel execution plans are running slower. Slower transactions can lead to more deadlocks since locks are held longer and lock escalations are delayed. If...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 10, 2008 at 5:36 am
That is something I was curious about but never pursued. Thanks for the info.
So then, would you say, there's pretty much no reason to ever use a table variable (except,...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 10, 2008 at 5:24 am
Whoop!
Hold the phone. Did you say it goes against another database? Is that other database only performing reads or does it also have inserts & updates? And now that we're...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 9, 2008 at 12:41 pm
I know of a .22 revolver that holds 10 or 12 shots, but since most of these guys are toting Police Specials, etc., I don't think so.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 9, 2008 at 10:37 am
I agree with the last post. You must be doing inserts, updates, deletes, somewhere in order to get deadlocks.
Are you possibly creating global temporary tables as part of the querying...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 9, 2008 at 7:00 am
If you fixed it, post the solution so that anyone else reading the post knows how to solve it too.
Did you multiply by 60.0?
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 9, 2008 at 6:56 am
While breaking up the files and filegroups as you've outlined will help, don't forget about the database log. It needs to be on a pretty fast disk (RAID 5 would...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 9, 2008 at 6:46 am
My experiences with virtualization haven't been terribly great either. To date, the technology I've seen all comes at a performance cost that most users don't want to pay. That said,...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 9, 2008 at 6:42 am
Based on the query that you've described, I'd say a clustered index on the Registration Number. You should probably experiment with a clustered index on the registration number and the...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 9, 2008 at 5:53 am
I finally got one reply over in the Microsoft forum. Buck Woody, Microsofts SQL Server Program Manager, thinks it might be a bug. If anyone can replicate it, please go...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 8, 2008 at 1:29 pm
I still entertain myself counting the number of times people can fire a standard revolver without reloading. It's when you break 10 that things get really irritating.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 8, 2008 at 9:39 am
In addition to the query itself, you might want to check the statistics on your indexes. I don't know how many rows the query ought to return, but the index...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 8, 2008 at 9:37 am
When you deploy the stored procedures, they'll use the statistics to compile a new plan. If the statistics are maintained well enough for normal purposes, they'll be fine for this....
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 8, 2008 at 8:08 am
Viewing 15 posts - 19,471 through 19,485 (of 22,219 total)