Arithmetic

Optimize Your SQL by Reformulating the Spec

  • Article

As SQL developers, we tend to think of performance tuning in terms of crafting the best table indices, avoiding scalar and table valued functions, and analyzing query plans (among other things). But sometimes going back to the spec and applying some properties of elementary math can be the best way to begin to improve performance of SQL queries which implement mathematical formulas. This article is a case study of how I used this technique to optimize my SQL implementation of the Inverse Simpson Index.

5 (3)

2021-05-07 (first published: )

4,603 reads

Blogs

Updated Pluralsight Course – Managing the Kubernetes API Server and Pods

By

My updated course “Managing the Kubernetes API Server and Pods” in now available on Pluralsight here! If...

Daily Coping 11 May 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

What do you do when technology changes? : T-SQL Tuesday #138

By

Our host for this month’s TSQL Tuesday is Andy Leonard (blog|twitter). He’d like us...

Read the latest Blogs

Forums

Where to download previous versions of CU for SQL server 2019

By sqlfriend

I see there is some defects for inline functions by CU9, and CU10. So...

How to rebuild index on Internal Table?

By mandavli

I keep on getting error : Unable to find index entry in index ID...

Division between two Summed fields giving errors

By fahad.kazi

Hi, I am trying to get a Percentage of Budget field added to my...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers