Index Design and Access Paths

Clustered and nonclustered indexes, keys, included columns, and access paths.

113 associated posts109 primary posts

[Video] Office Hours: Q&A on the Mountaintop

Well, maybe mountain is a bit of a strong word, but it's one of the highest elevation home sites in Las Vegas, with beautiful views over the valley, the Strip, the airport, and the surrounding mountains. Let's go through your top-voted questions from https://pollgab.com/room/brento while taking in the view - and you can move the camera around, since this is an Insta360 video.

Read more about [Video] Office Hours: Q&A on the Mountaintop 4 comments — Join the discussion
Performance Tuning

Row-Level Security Can Slow Down Queries. Index For It.

The official Azure SQL Dev's Corner blog recently wrote about how to enable soft deletes in Azure SQL using row-level security, and it's a nice, clean, short tutorial. I like posts like that because the feature is pretty cool and accomplishes a real business goal. It's always tough deciding where to draw the line on how much to include in a blog post, so I forgive them for not including one vital caveat with this feature.

Read more about Row-Level Security Can Slow Down Queries. Index For It. 3 comments — Join the discussion
Performance Tuning

How to Query JSON Data Quickly in SQL Server, Part 1: Pre-2025

Before SQL Server 2025, if you want to store JSON data in Microsoft SQL Server or Azure SQL DB, and you want fast queries, the easiest way is to:

Store the data in an NVARCHAR(MAX) column (because the native JSON datatype didn't arrive until SQL Server 2025)
Add a computed column for the specific JSON keys we'll want to query quickly
Index those keys
Query it using the JSON_VALUE function

Read more about How to Query JSON Data Quickly in SQL Server, Part 1: Pre-2025 12 comments — Join the discussion

[Video] Office Hours at the Northernmost Town in the World

Despite its location, Hammerfest, Norway attracts countless tourists eager to see the festival celebrating one of the world's favorite rappers. Did I get that right? I'm not sure I got that right. There's also fierce competition for the title of northernmost town: nearby Honningsvåg Norway also wants that claim, but with a population of only…

Read more about [Video] Office Hours at the Northernmost Town in the World Be the first to comment