“UPDATE, INSERT, and DELETE are not normally processed in parallel”
Years ago, when troubleshooting performance, I stumbled across this Microsoft documentation on parallel query processing that says: Certain types of statements cannot be processed in parallel unless...
View ArticleUpcoming Free Webcast: 500-Level Career Guide: Building Your Brand
At SQLBits 2020 on Saturday, October 3 at 11:10AM Eastern, 8:10AM Pacific (calendar), I’m presenting a session called 500-Level Career Guide: Building Your Brand. Here’s the abstract: If you want to...
View Article“Not to write any procedure over 50 lines”
In Joe Celko’s Stairway to Database Design series, he writes: The rules of thumb for T-SQL are not to write any procedure over 50 lines (one page) This seems so radical at first, but it has precedence...
View ArticleUpdated First Responder Kit and Consultant Toolkit for September 2020
Let’s give a big round of virtual germ-free applause to Adrian Buckman, Erik Darling, Garry Bargsley, Greg Dodd, Ian Manton, John McCall, Kuldar Andares, Pierre Letter, Stephen Anslow, Tom Butler, and...
View ArticleFree Webcast Wednesday: Pushing the Envelope with Indexing for Edge Case...
Most of the time, conventional clustered and non-clustered indexes work just fine – but not all the time. When you really need to push performance, hand-crafted special index types can give you an...
View ArticleHow to Create a Table with a Partitioned Clustered Columnstore Index
If you need to create a table and you want it to be partitioned right from the start, AND you want it to have a clustered columnstore index, here’s a creation T-SQL example:CREATE TABLE...
View ArticleUnindexed Foreign Keys Can Make Performance Worse.
I know. You, dear reader, saw that title and you came in here because you’re furious. You want foreign key relationships configured in all of your tables to prevent bad data from getting in. But you...
View ArticleSQL Server Suddenly Frozen? You Might Be Snapshotting Too Many Databases.
Snapshot backup tools like Azure Site Recovery and Veeam are great for sysadmins. They let you quickly replicate a virtual machine to somewhere else without knowing too much about the server’s...
View ArticleI Would Love a “Cost Threshold for Recompile” Setting.
I’m tired of sniffing your parameters. In environments where complex queries can get bad plans due to parameter sniffing, it would help to say that all queries with an estimated cost over X should be...
View ArticleThe 4 Presentations I’m Proudest Of, and What Inspired Them
I was thinking back about the presentations I’ve been the most proud of over the years. I’ve written and performed a *lot* of stuff over time, but here are some of the free public presentations I’m the...
View ArticleBuilding SQL ConstantCare®: Warning You About New Large Tables & Indexes
When I’m doing a SQL Server health check, one of the things I like showing clients is a list of their top tables by size. Inevitably, there are a bunch of tables that: Tables whose names start with...
View ArticleAnnouncing a New Class: Fundamentals of Columnstore
Your report queries are too slow. Will columnstore indexes help? You’ve tried throwing some hardware at it: your production SQL Server has 12 CPU cores or more, 128GB RAM, and SQL Server 2016 or newer....
View ArticleWant to use columnstore indexes? Take the ColumnScore test.
When columnstore indexes first came out in SQL Server 2012, they didn’t get a lot of adoption. Adding a columnstore index made your entire table read-only. I often talk about how indexing is a tradeoff...
View ArticleFree Webcast on Wednesday: The New Robot DBAs in SQL Server 2017, 2019, and...
The robots are really just people wearing metallic masks. You’ve been hearing about all these robots that are coming to take your job. They’re going to automate all the performance tuning and make your...
View ArticlePoor Man’s Resource Governor: Database-Scoped Configurations
Let’s say you had report queries that were going wildly parallel, and you wanted to put a stop to it, but you couldn’t afford SQL Server Enterprise Edition. You could do is create databases with...
View ArticleWhat Is the SQL Server CEIP Service?
The CEIP Service is the Customer Experience Improvement Program that sends telemetry data back to Microsoft. When you install Microsoft SQL Server, the CEIP Service is installed too. You can’t disable...
View ArticleWoohoo! We Hit 25,000 YouTube Subscribers.
As I finished this weekend’s live stream, I noticed that we crossed a big number. The Brent Ozar Unlimited YouTube channel now has over 25,000 subscribers. Well, that’s kinda awesome. I’ve had a great...
View ArticleFree Live Fundamentals Classes, Registration Open Now
Well, this quarantine just isn’t letting up, so it’s time for another round of free training. I’m running 3 free live classes on October 26-28: October 26: Fundamentals of Index Tuning – 9AM-5 Eastern...
View ArticleDatabases Are Like Walk-In Coolers. #tsql2sday
In the back of a restaurant, there’s a walk-in cooler (or a few of ’em.) When a chef needs to make something, she goes into the walk-in cooler, gathers the necessary ingredients, and then comes out to...
View ArticleFree Webcast on Thursday: Avoiding Deadlocks with Query Tuning
To fix blocking & deadlocks, you have 3 tools: Have enough indexes to make your queries fast, but not so many that they slow down delete/update/insert operations. (I cover that in the Mastering...
View Article