Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38974

How to force a mongodb mapreduce query to use a specific index (similar to '$hint')?

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 4.0.5
    • None
    • None
    • Triage

    Description

      Hi,

      we run thousands of mapreduce jobs in mongodb every day. Unfortunately mongodb sometimes uses the wrong index to perform these.

      Is there any way to pass a '$hint' flag to a mapreduce query ?

      Thanks
       

      Attachments

        Issue Links

          Activity

            People

              backlog-server-triage Backlog - Triage Team
              rswem RS
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: