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

Incorrect example of query to show Index Intersection Mechanism

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Do
    • None
    • None
    • manual, Server

    Description

      From documentation
      ...
      MongoDB can use the intersection of the two indexes to support the following query:

      db.orders.find( { item: "abc123", qty:

      { $gt: 15 }

      } )
      ...

      Based on that improvement and comment intersection should not work with range query. So the example should be like db.orders.find( { item: "abc123", qty:

      { $eq: 15 }

      } )

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dmytro.drachov@gmail.com Dmytro Drachov
              Education Bot Education Bot
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                5 weeks, 3 days ago