Aggregates

SQLServerCentral Article

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,241 reads

Blogs

T-SQL Tuesday #155 –The Dynamic Code Invitation

By

Apologies for the late invitation. A minor snafu has me hosting again. This is...

Daily Coping 6 Oct 2022

By

Today’s coping tip is to remind yourself that you are enough just as you...

What you can do is based on more than your direct permissions.

By

What you have access to is not just what you have direct permissions to....

Read the latest Blogs

Forums

Windows SQL Server 2012 on Raspberry Pi

By kinropags

I am wondering whether or not there is a way to get Windows SQL...

What's the CEIP?

By Steve Jones - SSC Editor

Comments posted to this topic are about the item What's the CEIP?

Assembling Your Own Toolbox

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Assembling Your Own Toolbox

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers