math

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)

You rated this post out of 5. Change rating

2021-05-07 (first published: )

5,379 reads

Blogs

India-US Tariff War: Is the Indian IT Sector at Risk?

By

How U.S.-India Tariff Disputes Could Ripple Through the Indian IT Sector Although the newly...

Save BIG on Microsoft Azure Certification – Up to 100% Off!

By

🌟 Why Microsoft Azure Certifications Are Beneficial for Your Career 🗓️ How to Schedule...

Modifying a Trigger to Capture More Info: #SQLNewBlogger

By

I had someone ask me about using triggers to detect changes in their tables....

Read the latest Blogs

Forums

One big server with multiple instances, or multiple smaller servers...

By jasona.work

We're currently on SQL 2019 and will likely be looking to migrate to a...

Transitioning AlwaysOn Availability Group to Synchronous Commit Mode

By abdalah.mehdoini

Hello, I have a SQL Server with an AlwaysOn configuration consisting of three replicas...

CDC & Azure Managed Instances - Performance degredation

By Ant-Green

Anyone got any good advice for performance tuning CDC on a Managed Instance? We...

Visit the forum

Question of the Day

The Trigger Updated Column(s)

In a trigger, I can use UPDATE() or UPDATED_COLUMNS() to determine which columns were changed. For these functions, which one accepts a column name as a parameter?

See possible answers