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
SQL SERVER - Performance: OR vs IN

SQL SERVER – Performance: OR vs IN

September 11, 2023
Pinal Dave
SQL Performance
Execution Plan, SQL Server Management Studio, SQL Statistics

I recently asked on Twitter an exciting question about OR vs IN. While I got lots of good answers, there were an equal amount of wrong answers.

Read More
Cardinality Estimation

SQL Server 2022 – Cardinality Estimation (CE) Feedback for Performance

June 27, 2023
Pinal Dave
SQL Performance
Compatibility Level, Execution Plan, Query Store, SQL Server 2022

SQL Server 2022introduces an enhanced Cardinality Estimation (CE) feedback feature as part of the intelligent query processing family.

Read More
Parameter Sensitive

Parameter Sensitive Plan optimization in SQL Server 2022 – SQL in Sixty Seconds #200

May 16, 2023
Pinal Dave
SQL Video
Execution Plan, Parameter Sniffing, SQL in Sixty Seconds, SQL Performance

SQL Server 2022 introduces Parameter Sensitive Plan Optimization (PSPO), a feature that revolutionizes the performance of parameterized queries.

Read More
A wooden butter stamp pressing a flower pattern into butter, a row of identical stamped pats behind it.

Prepared Statements and Plan Reuse From Application Code

July 25, 2022
Pinal Dave
SQL Performance
Ad Hoc Query, Execution Plan, SQL Cache, SQL Server

Inspect prepared statements, handle lifetimes, parameter types, cached Prepared plans, and the limits of optimize for ad hoc workloads.

Read More
A glassblower turning a half-formed glowing vase on a blowpipe, finished vases cooling on a shelf behind

Live Plans for Running Queries With sys.dm_exec_query_statistics_xml

June 23, 2022
Pinal Dave
SQL Performance
Execution Plan, SQL DMV, SQL Server, SQL Wait Stats

Read sys.dm_exec_query_statistics_xml for live plans, compare profile counts with estimates, and interpret partial progress carefully.

Read More
SQL in Sixty Seconds' man holding a key.

Remove Key Lookup – SQL in Sixty Seconds #194

February 21, 2022
Pinal Dave
SQL Video
Execution Plan, SQL in Sixty Seconds, SQL Index, SQL Performance, SQL Server Management Studio

Today, we are going to see one more trick from the book – Remove Key Lookup and improve the performance of queries.

Read More
Two street lamps on a cobbled square at night whose pools of light overlap in one brighter patch

Splitting OR Conditions Into UNION ALL for Index Seeks

December 27, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Server, SQL Union clause

Test splitting OR conditions into disjoint UNION ALL branches, preserve NULL behavior and row identity, and compare actual index access.

Read More
Previous 1 2 3 4 5 … 30 Next
  • Books
  • Testimonials
  • Privacy Policy

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