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
    • Component/s: Indexing, MapReduce, Querying
    • 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

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: