HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlMinor

How does order of index affect performance in SQL Server?

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
ordersqlaffectperformancedoeshowserverindex

Problem

I am wondering how does order of index affect performance (ASC, DESC) ? If it affects, why ? And which order should I choose ?

Solution

In this article someone looked at the performance of an index and the ordering of the data in the index.

Summary

As we have shown creating an index in ascending or descending order does not make a big difference when there is only one column, but when there is a need to sort data in two different directions one column in ascending order and the other column in descending order the way the index is created does make a big difference.

Context

StackExchange Database Administrators Q#40090, answer score: 3

Revisions (0)

No revisions yet.