Aggregates

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: )

5,146 reads

Blogs

Daily Coping 21 Sep 2021

By

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

#PowershellBasics: Bulk insert.

By

In my last post I talked about invoke-sqlcmd. It’s a nice easy way to...

Lambda Architecture in data systems and possible meaning of this name

By

(2021-Sep-21) There is one scene in "The Core" movie that I really like when two geophysicists...

Read the latest Blogs

Forums

The actual file SQLServerManager15.msc is missing from my computer

By Jocar26

I did a fresh install of Windows 10 Pro and loaded SSMS on it. ...

PostgreSQL Date And Time Part 2

By Shivayan Mukherjee

Comments posted to this topic are about the item PostgreSQL Date And Time Part...

To Inifinity and Beyond With 1=1

By Steve Jones - SSC Editor

Comments posted to this topic are about the item To Inifinity and Beyond With...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers