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

XMLWordPrintableJSON

    • Server Triage
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
       

            Assignee:
            [HELP ONLY] Backlog - Triage Team
            Reporter:
            RS
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: