CTE

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 (2)

2019-09-12

2,640 reads

Blogs

SQL in the City Comes Back to Seattle

By

This year at the PASS Summit, Redgate is holding our SQL in the City...

Backup Techniques for SQL Server on Azure Virtual Machines

By

In the previous blog post I did a quick overview building a SQL VM...

SQLCover 0.5 - Fixes, smaller features and an exciting surprise

By

It has been a little while but I have updated SQLCover to include a...

Read the latest Blogs

Forums

Exception handling for backup related errors.

By vsamantha35

Hi All, Need some help in exception handling. In below code, I want to...

DB Log File Location Error

By na_ma_cool

Hi, I am taking full backup of db on remote location. The issue we...

SQL query help

By sqlenthu 89358

I have a table like this: Year month col_abc1 col_abc2 col_abc3 col_abc4 col_processing 2019...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers