Meysam
Meysam

Reputation: 18137

Sorting Float Column vs Int Column in SQL Server

I wonder if type of a column matters in terms of sorting performance. I have heard that int columns are sorted faster than float columns. Do you think it is correct?

Upvotes: 3

Views: 2553

Answers (1)

Tomalak
Tomalak

Reputation: 338158

For columns without an index on them, sorting does depend on the data type.

Floats are more complex than integers, so it is logical to conclude that sorting them takes a bit longer.

Upvotes: 7

Related Questions