Archives: June 2010
Function Calls are Evil Incarnate
The following queries look extremely innocent. However, they are all application killers once the target table grows to more than a couple thousand rows:
Select Count(*) From Person_Data Where Upper(Name_Last) = ‘SMITH’
Select Avg(Collar_Size) From Person_Data Where dbo.MyFunc(Person_Data_ID) > 500
For each of these statements, a table scan will be… Read more
7 comments, 497 reads
Posted in SQL Coach on 28 June 2010
My SELECT statement has hung!
One of the first roadblocks many developers run into when using SQL Server for the first time is firing off a query that simply selects data, and having the query never return a result. After spending several minutes of their precious life-force watching nothing happen, they get aggravated, cancel the… Read more
0 comments, 517 reads
Posted in SQL Coach on 24 June 2010
The Power of Indexes
Time and time again I have run into the scenario where a developer who is moving into using databases is not solid on what an index is or how to correctly utilize them. While this is well-worn territory for the DBAs in the crowd, it bears taking some time for… Read more
2 comments, 226 reads
Posted in SQL Coach on 22 June 2010
Killer I/O
Here’s a big statement
WHEN WRITING DATABASE QUERIES, 95% OF THE TIME THE BOTTLENECK IS IN THE I/O, not the CPU, and not the memory. Often, when queries run slowly, the newer database developer will suspect that the hardware is insufficient. While beefier hardware can make a dent, the well… Read more
4 comments, 222 reads
Posted in SQL Coach on 10 June 2010
A Guitar is Just a Piece of Wood
In my real-life I play guitar. Being an analytical sort-of-fella I found myself inhaling all the books, videos, advice, etc. that I could muster. One of the best pieces of advice went something like this (and it applies to SQL as well):
“A guitar is only a piece of wood… Read more
0 comments, 200 reads
Posted in SQL Coach on 8 June 2010
Catch Performance Issues Early!
I have posted this before elsewhere. However, due to the frequency in which I come across this, I feel it’s worth reiterating…
This unfortunate situation arises all too frequently, and there is a relatively simple solution to it.
Often, everything performs well in your development/test environment because you have relatively… Read more
0 comments, 175 reads
Posted in SQL Coach on 3 June 2010
Performance Tuning Series
To kick off this blog, I am going to start with a topic that is hot on the mind of most developers who begin using databases in a serious way, and that is performance!
As developers begin using databases or scale up into applications that need to track a lot… Read more
0 comments, 191 reads
Posted in SQL Coach on 3 June 2010
The Nature of the Database-Driven Developer
Bear with me as I wax philosophical for two sentences. Our societies are becoming more polarized with each passing day. We see this in spirituality, politics, family life, and most other aspects of our lives. As IT professionals, our careers are impacted by this polarization. There are pressures for us… Read more
0 comments, 187 reads
Posted in SQL Coach on 3 June 2010



Subscribe to this blog