improve.dk
Just another mindless drone looking for the perfect stack
posts - 220, comments - 475

SQL Server: Optimization


Avoiding page splits by… Splitting pages

Written on Tuesday, May 24, 2011 by Mark S. Rasmussen in SQL Server: Optimization

Page splits are bad for performance, but don't base your clustered index on a sequential column blindly. Here's a situation where it doesn't make sense to do so.

2 comments | Read comments
 

Wasted bytes add up, consider your data types carefully

Written on Tuesday, May 17, 2011 by Mark S. Rasmussen in SQL Server: Data Types, SQL Server: Optimization

You should consider your data types carefully when designing SQL Server tables. If not done properly you may waste lots of bytes per page.

2 comments | Read comments
 

Watch out for implicit uniqueidentifier conversions

Written on Tuesday, April 26, 2011 by Mark S. Rasmussen in SQL Server: Optimization

Implicit conversions are bad for performance as they may cause index scans instead of index seeks. Learn how to avoid this when using the uniqueidentifier data type.

7 comments | Read comments
 

Tricky SQL Server decimal math

Written on Wednesday, May 06, 2009 by Mark S. Rasmussen in SQL Server: Data Types, SQL Server: Optimization

When performing math using SQL Server decimals, the precision may change and cause implicit conversions. Learn how to predict and avoid this situation.

No comments | Write first comment
 

Solving deadlocks through locking hints

Written on Wednesday, April 01, 2009 by Mark S. Rasmussen in Development: .NET, SQL Server: Optimization

Learn what causes a SQL Server deadlock and how to solve it using locking hints and isolation modes. We'll be looking at the updlock hint as well as the serializable isolation mode.

1 comments | Read comments
 

Query Optimization - A Case Study

Written on Friday, March 20, 2009 by Mark S. Rasmussen in SQL Server: Optimization

Here's an example of the query optimization process. Fixing one thing allows you to optimize another, all the way until the query is perfect.

No comments | Write first comment
 

ANUG Talk: Optimizing SQL Server 2005

Written on Thursday, March 12, 2009 by Mark S. Rasmussen in Development: .NET, SQL Server: Optimization, Presenting

These are the slides & materials for my "Optimizing SQL Server 2005" talk presented at the Aarhus .NET User Group.

2 comments | Read comments