SQL SERVER – Applying NOLOCK to Every Single Table in Select Statement – SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

The other day, during SQL Server Performance Tuning Practical Workshop, I walked into a very interesting situation. While tuning a query we had a situation when we had to check if the query is locked during the execution of not. To test our theory out we had to put a nolock hint for every single table of the long query. However, it was no way possible to do so as the Stored Procedure was super huge and involved over 90 tables and 14 views in multiple SQL Statements. It was indeed a huge challenge for a developer team to modify that SP. If you ever face such situations, you should not stress out. There is a much simpler way to read uncommitted data.

Read More

SQL SERVER- High CPU and Transaction Type WorkFileGroup_fake_worktable and Workfile

As a part of my  SQL Server Performance Tuning and Optimization consultancy, I face interesting situations and every time I am able to resolve them. This was one of the more interesting ones where I was not getting any hint from the internet. Since it was a new thing to me, I am sharing it via this blog. In this blog, we would learn about the cause of WorkFileGroup_fake_worktable and Workfile.

Read More

Practical Real World Performance Tuning – Games , Interaction and Feedback

If you are following this blog, you would be familiar with my online class Practical Real World Performance Tuning with Brent Ozar. The course was initially planned to offer for only 3 different times this year. However, due to a popularity of the course, we had offered this course so far 5 times. The course is very unique and there is nothing out there which is comparable to this course. Let me just highlight a few points which makes me proud every time I talk about this course. Let us discuss Practical Real World Performance Tuning – Games , Interaction and Feedback.

Read More

SQL SERVER – DBA Disruptors eCourse

Performance tuning is indeed very simple in the real world but many experts often project it as a very complex task. I often think it is because that expert would love to project that they are master of some complex art, which is not easily mastered. However, I personally believe everyone who wants to learn performance tuning, can learn it quickly and easily. I am very happy to discuss my latest DBA Disruptors eCourse.

Read More

SQL SERVER – Observation: ROWLOCK Hint and Slow Performance

During my recent Comprehensive Database Performance Health Check Developer showed me a slow query which used ROWLOCK hint. The common understanding is that with the help of ROWLOCK hint SQL Server only locks a single row which eventually leads to performance but in their case, it was actually very much opposite. Let us see this scenario with a simple example.

Read More