Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8497719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:12:23+00:00 2026-06-11T00:12:23+00:00

Some said for compound indexes then ordering matter. Some says ordering doesn’t matter. Which

  • 0

Some said for compound indexes then ordering matter. Some says ordering doesn’t matter.

Which one is right? And why?

I mean if I look up phone, I don’t see how whether the phone is sorted a to z or z to a matter at all. How would that change for compound indexes?

Note: What i mean is ordering in descending or ascending sense. I am well aware that ordering of the column matter.

Note we have 2 answers by high point members. One say that descending or ascending doesn’t matter even for compond index. Another said it matters. So yes there is controversy here. Where can I (or we) dig more.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:12:24+00:00Added an answer on June 11, 2026 at 12:12 am

    Ordering in the general case does matter. The question is: What ordering are you referring to and does it matter in your case?

    1. Descending vs Ascending. Matters only in very special cases where you actually want the result sorted in a special order. Say you want your result ordered like this:

      a asc, b desc, c asc

    but your index is

    a asc, b asc, c asc
    

    The database has to do an additional sort. The same applies when you want to access the first n elements according to some order. This is more important for composed index, because a change of direction of a single column results in a completely different total ordering, while the ordering of a single column in a single column index just reverses the ordering.

    1. Ordering of the columns so

      a, b, c

    vs

    b, a, c
    

    If you filter for all columns it doesn’t make much of a difference, but if you filter only for a, the first index will be more useful than the second.

    Whenever you have two options for solving a problem in a programming language and somebody tells you they don’t make a difference, ask why the two options exists. If ‘somebody’ can’t answer that, I wouldn’t trust his advice on the two being equivalent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My SharpDevelop Version is 4.0.0. Some one said I can found at Tools->Subversion, but
I am developing face detection photo capture application in android. Some one said that
Somewhere some guy said (I honestly do not know where I got this from),
Title said it all. Some context: I got a search mechanism - search view,
I want to clean up some parsed text such as \n the said \r\n\r\n\r\n
I wrote some code today and It was changed by another developer who said
I was looking at some code a friend sent me, and he said: It
Does jQuery validation plugin have some dependencies? For example, I saw blogposts that said
I have a a homework, and my professor said some of the students figured
I've been researching this throughout SO and some people said that this error is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.