Press "Enter" to skip to content

Author: Kevin Feasel

Managing tempdb Activity

Aaron Bertrand has built a solution:

Managing tempdb growth tends to be a very reactive exercise. We size tempdb using a predictive ruleset based on expected workload, database size, concurrency, and other imperfect factors. Then someone does something silly and fills the T: drive. If we catch it in time, we may be able to kill the offending session or add space to prevent the workload from dying. Then we tell them not to do it again; but they will, of course, so we expand the drive again and hope this time it’s big enough. But it rarely is. It’s like a baseball game that’s tied in the 5,662nd inning. Each team keeps scoring a single run in every new inning; the game will never end.

Our existing “drive full” alarms start going bonkers as soon as a drive is more than 90% full. We have a dedicated drive for tempdb data, and we pre-allocate the data files to just under 90% of the available space. This prevents any growth events while they’re using tempdb within the bounds of its current size. But when we fill the space already allocated to the data files, they grow. After one or two growths, we have crossed the threshold for drive space alerts, and it probably won’t be long before the volume fills and the workload grinds to a halt.

Click through for the solution scripts and Aaron’s explanation of it all.

Leave a Comment

Full-Text Search with DAX

Marco Russo and Alberto Ferrari dig into a recent feature addition:

Searching text in a Power BI report usually means looking for a string inside the values of a column. For example, the filter pane translates a “contains” condition into a DAX expression based on CONTAINSSTRING or SEARCH, which look for a sequence of characters anywhere in the text; for example, a search for “phone” also returns “headphones” and “microphone”.

With a full-text index, search functions operate on words rather than characters. The text data is divided into words, also called tokens, and a following text-normalization technique called stemming reduces words to their root form. For example, “running” and “runs” both stem to “run”, whereas “runner” remains a different word. This way, a search for “phone” can return “phones”, but not “headphones”, because it has a different meaning. Also, full-text search can tolerate typos and rank results by relevance, which CONTAINSSTRING cannot do.

Click through to see how it works and what the current limitations are.

Leave a Comment

Making the Power BI Gantt Chart Useful

Valerie Junk shares some tips:

If you drag the new Power BI Gantt chart onto your report page and add a task with a start and end date, you get… well, a Gantt chart! But does it really tell you anything? A project plan is there to answer questions: where are we, what’s late, and who’s working on it? 

The good news: you don’t need anything fancy. With a few tweaks in the format pane, you can get a long way!

Click through for seven tips to turn this from a mess into a practical visual.

Leave a Comment

Report Bursting with Dataflows Gen2 and Action Sequences

Chris Webb follows up on a prior post:

A couple of weeks ago I wrote this post about how you can use the new Send Email action in Dataflows Gen2 to send out email-based reports to a list of recipients. I did it by creating a parameterised Dataflow – which worked but the end result was slow and therefore expensive. So I started thinking about other approaches and it turns out there is indeed another way of solving the problem, using a whole branch of M functions that is not properly documented and which I’ve never used before.

Read on to learn more about these Action Sequences.

Leave a Comment

Reducing SQL Server Container Image Sizes

Anthony Nocentino spreads the news:

This week I was at PASS Data Community Summit in Seattle, and I attended a session called “An Inside Look at How Microsoft Builds SQL Features, by Bob Ward, Naveen Prakash, and Travis Wright, all of whom are on the SQL Server team. In this session, Travis mentioned that they reduced the SQL Server container image size by a meaningful amount using AI agents that helped discover unused code in the image, but details on how much and when were lost when the conversation moved on to the next topic. So I set out to find out exactly which SQL Server build this came out in, and I also wanted to measure how much we saved. They also mentioned that startup times were better now.

I use SQL Server containers nearly every day, and I’ve written a ton about containers on this blog, so I got to work. So I pulled the CU images for SQL Server 2025 and SQL Server 2022, measured each one, and timed how long it took to get from docker run to a successful query.

Read on to see what Anthony was able to find with respect to image size and container startup time.

Leave a Comment

Introducing Dr. Lakehouse

Nikola Ilic has a new tool:

When I was young, I used to watch Dr House. If you’ve never seen it: a brilliant, grumpy doctor and his team get the cases nobody else can solve, and the patients almost never tell the truth. “Everybody lies”, says House, so he stops listening to what the patients say and looks at the evidence instead. And, of course, it’s never lupus.

Lakehouse tables are not that different. Your pipelines are green, your notebooks finish without errors, and every table tells you it’s perfectly fine. Everybody lies! And in Fabric, it’s never lupus – it’s (almost) always small files

There was one episode where they played on the “It’s lupis!” meme and it really looked like it was lupus. But even then, it wasn’t lupus.

Leave a Comment

Remaining Relevant in an LLM World

Erik Darling shares some advice:

Erik Darling here with Darling Data. And in today’s video, we are not going to talk directly about SQL Server. We are going to talk about how to stay relevant in the age of AI, right? All the AI stuff going on.

Even, I mean, I think that’s, it’s obviously a stupid term. We all know that they’re LLMs, right? We all know it’s not artificial intelligence. It’s just random word generators. We just happen to, you know, be pretty, pretty decent at coding sometimes and whatnot.

Erik’s “I’m an old man because I use an RSS feed reader on my phone.” I feel seen.

I fully agree with Erik’s point about AI-generated blog posts as a waste of time. I get frustrated when I get part of the way through an article, have something click in my head, paste a chunk of the post into Pangram, and see that yeah, this is LLM-generated. Right around that time, I typically decide not to post it here (except in very specific circumstances).

1 Comment

The Proliferation of AI-Generated Bug Reports for Postgres

Cristophe Pettis stands athwart History:

Lately, the PostgreSQL’s bug-report mailing list has been receiving a large number of AI-generated bug reports. Often, these come in flurries of 10-15 bugs, each from the same email address.

These bug reports are of, shall we say, highly variable quality.

Click through for a breakdown of several of these bug reports and the waste of time they embody. I think Cristophe makes a great point: the problem isn’t the language model itself. The problem is the human who clicks a few buttons, automates firing off e-mails, and says “I’m doing my part!”

Leave a Comment