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

Blogs

Power Platform Quick Tips – Episode 03: Documenting Power Automate Flow Logic

By

Welcome back to my series on Power Platform quick tips! In this episode you...

State of Database DevOps Survey

By

Maybe you’re using DevOps within your database development and deployment. Maybe you’re not. Maybe...

HP is the 2019 Laptop Winner

By

This is for me, not necessarily for you, but I decided to go with...

Read the latest Blogs

Forums

Insert in batches using select coalesce option

By vamshi.sql

Hi, I am trying to insert multiple tables data into one table using Insert...

Fastest Way to Calculate Total Number of records inserted per day

By bhavi

Hi, I need to show a number of records per day in the dashboard...

Fastest way to query Millions of records with Pagination and Total Record Count

By bhavi

HI, We had a table that contains a huge volume of data inserted per...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers