
Archive:
- August 2026 (8)
- July 2026 (8)
- June 2026 (7)
- May 2026 (7)
Search site:
Tags:
Compilation (1) Concurrency (3) docker (2) Execution Plans (6) Identity (1) Indexes (2) internals (11) linux (4) Optimization (6) Parameterization (1) Performance (9) Performance Tuning (2) postgres (6) RCSI (2) sql (1) SQL Server (24) Statistics (2) Stored Procedures (1) Transactions (1) Version Store (2)
Categories:
Month: August 2026
-
Reseed Identity – Can it Cause Clashes?

I recently had cause to reseed an identity column on a table in SQL Server, which got me wondering “If we reseed an identity column to a value lower than the existing identity values in the column, could it cause a clash?” Because why wouldn’t you wonder if you can cause something to break, whilst…
-
I Was Today Years Old When…Stored Procedures – Optional String Quotes
Today’s post is a quick one and the first in a new series I am calling “I Was Today Years Old When…” where I share simple little nuggets that I stumbled across where I think “How…HOW have I never known this” The series for me will serve as a reminder as to why I love…
-
sp_executesql and Execution Plans

Last Updated: August 17, 2026 Whilst I would say the actual execution plan is the most useful, estimated execution plans have their place – sometimes you just need to see estimates or a quick verification that a change you have made has had some effect on plan shape. I find them helpful to quickly see…
-
Setting up the Stack Overflow database in Postgres

I’ve worked with Microsoft SQL Server for many years as well as dipping my toes into the MySQL world as and when required, however, I have not done as much with PostgreSQL. It’s hard to ignore the momentum that Postgres has built in recent years; it is moving up the Stack Overflow Developer Survey and…
-
Curse of the Catch-All query

Last Updated: August 17, 2026 The catch-all query – a fairly common pattern that is often seen in SQL Server apps where there is a list of results that can be filtered by one or more criteria. This usually takes the form of a stored procedure that is constructed as below. The example stored procedure…
-
OR predicates and Indexes

Last Updated: August 4, 2026 In this post, we will look at how SQL Server accesses indexes when an OR predicate is used. For this demo, I am going to use the Stack Overflow Database. I am using the large 2024 version provided under cc-by-sa 4.0 licence from Stack Exchange Data Dump and running in…
-
Four Flavours of Postgres Install – Part 4 (Windows)

This post is the next in a short series exploring the different ways we can install a PostgreSQL server. This time, we’ll look at a vanilla install on Windows – no Docker involved. The VM I’ll use the same spec VM as in the last post, which is sufficient for demonstration purposes: Firstly, let’s hop…
-
In a Query Plan Near You – Stats Loaded For Compilation

Last Updated: August 11, 2026 Something I have been making use of recently is the change in the way statistics that have been used to compile a plan are presented to us as SQL Server users. On a number of occasions I have needed to understand, or at least get some sense of, which statistics…