The SQL Server Performance Challenge: The “Bandwidth Killer” Edition ๐Ÿ”ฅ

The SQL Server Performance Challenge: The “Bandwidth Killer” Edition ๐Ÿ”ฅ

๐Ÿ‘‰ If you missed my previous post: SQL Server: Why Your Query Is Waiting (Top Wait Types Explained)



๐Ÿš€ Challenge: Can you fetch data using ZERO wasted bytes? ...your azure budget will be happy ๐Ÿ‘Œ

Hi SQL Server Guys, 

Let’s be honest: Most of your queries are "obese"They carry around metadata and columns you don't need, burning your Azure budget and choking your network.

Today, I challenge YOU!


๐Ÿ“ The Scenario:

You have a table Orders with 50 columns. 
This table has a column Customer nvarchar(200) that represent the name of the customer and a column Date Datetime.
All the other columns are nvarchar(200)  except the last that is a heavy nvarchar(MAX).

You need to check if at least one order exists for the "Customer_A" in the year 2025 to trigger an Agentic AI workflow.


๐Ÿ”ฅ THE CHALLENGE: 

Write the most "Minimalist" Query.

Your goal is to write a query that:

  • Returns the absolute minimum amount of data over the wire (Minimum Network Bandwidth).
  • Has the lowest Logical Reads possible.

Comment below with your solution! Show me your Execution Plan logic! ๐Ÿ‘‡




๐Ÿ”ฅ RELATED POSTS

Do you want to learn how to find the slowest Queries in few seconds? How to Find the Slowest Queries in SQL Server in 60 Seconds



๐Ÿ“ข ๐Ÿ“ข ๐Ÿ“ข If you like my work, if you found it helpful for you and you want to support this my Blog... well, the ads you see here are selected exactly to reflect your interests so, if a partner's offer catches your eye, give it a look! Your engagement helps me continue publishing premium and quality SQL Server content for the community.


Biondi Luca @2026 - Sharing over 25 years of Gained Knowledge for Passion!



Comments

I Post piรน popolari

Speaking to Sql Server, sniffing the TDS protocol

SQL Server, find text in a Trigger, Stored Procedures, View and Function. Two ways and what ways is better

SQL Server, Avoid that damn Table Spool!