This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Gouache painting of a market stall balance scale pulled down by a crate of heavy pumpkins, one vermilion

Expensive Queries by query_hash: Total Cost, Not One Plan

March 17, 2021
Pinal Dave
SQL Performance
SQL CPU, SQL Memory, SQL Scripts, SQL Server

Expensive queries by query_hash are ranked by total cost, not by single plans. A demo runs one lookup with 40 different literals and shows that the top single plan is a scan, while the grouped total, ranked by reads, points at the lookup. The query ranks by reads, CPU, time or runs.

Read More
Case-Sensitive Search

Case-Sensitive Search – SQL in Sixty Seconds #158

March 16, 2021
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Server, SQL String

Earlier I wrote a blog post about SQL SERVER – Case-Sensitive Search. Lots of people said I should make a video on this topic.

Read More
Gouache painting of pairs of large and small cups on a shelf with one small vermilion cup

Case-Sensitive WHERE Clause: COLLATE Without Losing the Seek

March 15, 2021
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Scripts, SQL Search, SQL Server, SQL String

A case-sensitive WHERE clause needs a COLLATE on the comparison, but the obvious version scans the index. A demo measures 286 reads against 2, and shows two fixes: keep the plain test beside it, or give the column a case-sensitive collation.

Read More
Compact and expanded fabric samples are compared beside the required processing tool.

SQL SERVER – Data and Index Compression – Real-World Conversation

March 12, 2021
Pinal Dave
SQL Performance
Compression, SQL Index, SQL Scripts, SQL Server

Index Compression needs workload measurements of storage, I/O and CPU. A customer conversation prompted my earlier advice.

Read More
A magnetic strip above a lathe holding four chisels within reach, a hand lifting the vermilion-handled one.

Memory-Optimized Tables as a Key-Value Cache

March 11, 2021
Pinal Dave
SQL Tips and Tricks
In-Memory OLTP, SQL Cache, SQL Memory, SQL Server

Build a key-value cache with SCHEMA_ONLY memory-optimized tables, native get and set procedures, expiry checks, and bounded cleanup.

Read More
Gouache painting of three snails crawling along a plank with the front one having a vermilion shell

Top Three Wait Stats and What Each One Means

March 10, 2021
Pinal Dave
SQL Tips and Tricks
SQL CPU, SQL Performance, SQL Server, SQL Wait Stats

The top three wait stats in the files people sent in were CXPACKET, SOS_SCHEDULER_YIELD and ASYNC_IO_COMPLETION. A small demo makes each wait happen and measures it with session wait statistics. The post explains what each one means and what to check next.

Read More
Wait Stats for Performance

Wait Stats for Performance – SQL in Sixty Seconds #157

March 9, 2021
Pinal Dave
SQL Tips and Tricks
SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Wait Stats

I finally decided to create a video on that topic on my SQL in Sixty Seconds Channel. I will create more videos on the topic Wait Stats for Performance.

Read More
Previous 1 … 72 73 74 75 76 77 78 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com