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

5,148 reads

Blogs

Daily Coping 23 Sept 2021

By

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

Getting Up and Running with Dapr

By

I’ve heard about Dapr a few times from developer friends, but hadn’t really understood...

Data Platform products for Microsoft gaps

By

Microsoft has a ton of data platform-related products, but there are certain areas where...

Read the latest Blogs

Forums

needing help casting varchar to decimal

By DaveBriCam

I'm needing to convert some varchar figures to decimal for sums, but can't quite...

Colum Header adding a 1 to the text when downloading?

By jbalbo

Hi, I come across this once in a while, I have a column header...

Wait type LATCH_EX [NESTING_TRANSACTION_FULL] - and blocking.

By Vladimir Isaev

We have this ad hoc query that is a recurring block leader, blocking dozens...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers