Indexes and sort order

S

Scott

When setting an Index for a particular field, you have the
option to set the sort order by ascending or descending.
Is there any reason other than preference of data
presentation to sort by descending as opposed to
ascending? Or does the sort order in any way effect the
efficiency of the Index?
 
P

Pat Hartman

The index order is immaterial. Use whatever is most appropriate. Date
fields are usually sorted as descending so that the newest entries are at
the top of the list. Index searches are binary so they are not affected by
row order.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top