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')?

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 4.0.5
    • Fix Version/s: None
    • Labels:
      None

      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

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

                Dates

                Created:
                Updated:
                Resolved: