|
|
|
|
Browse by Tags
All Tags » Undocumented (RSS)
-
In this post, I show you how to determine exactly which statistics objects were used by the query optimizer to produce an execution plan. Trace Flags We will need three undocumented trace flags. The first one (3604) is well-known – it redirects trace output to the client so it appears in the SSMS messages tab.
The second trace flag is ...
-
Books Online has this to say about page splits: When a new row is added to a full index page, the Database Engine moves approximately half the rows to a new page to make room for the new row. This reorganization is known as a page split. A page split makes room for new records, but can take time to perform and is a resource ...
-
The following table summarizes the results from my last two blog entries, showing the CPU time used when performing 5 million clustered index seeks:
In test 1, making the clustered index unique improved performance by around 40%. In test 2, making the same change reduced performance by around 70% (on 64-bit systems – more on that later). ...
-
You probably already know that it’s important to be aware of data types when writing queries, and that implicit conversions between types can lead to poor query performance. Some people have gone so far as to write scripts to search the plan cache for CONVERT_IMPLICIT elements, and others routinely inspect plans for that type of thing when ...
-
The diagram below shows two data sets, with differences highlighted:
To find changed rows using TSQL, we might write a query like this:
The logic is clear: join rows from the two sets together on the primary key column, and return rows where a change has occurred in one or more data columns. Unfortunately, this query only finds one of ...
|
|
|
|
|