Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-478

The same query show up in both able and unable to use index in Indexing Strategies

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • v1.0
    • manual
    • None

    Description

      db.collection.find( { b:

      { $gt:5 }

      } ).sort(

      { a:1, b:1 }

      ) show up in both be able to use the index and not be able to sort the results using the index.(example of Sort Using Indexes).

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            trgoofi trgoofi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 20 weeks, 5 days ago