views:

225

answers:

1

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?

+5  A: 

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.

Tomalak
Adding to that, floats take more storage space, so the index for floats should take more space thus being slower than indexes for ints.
Jonas Lincoln