5

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

1 Answer 1

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.