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

Add limit parameter to $or operator to provide control of the number of queries that will be executed in parallel

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None

      Description

      Decide whether or not this is necessary and if it is then implement.

      The current $or operator behaviour executes all clauses of an $or in parallel. The default behaviour should remain unchanged, however is it possible to add a control to limit the number of parallel queries (individual $or clauses executed) launched. With a poorly designed query this can cause performance issues at the mongod level and at a sharded level can trigger timeouts from the mongos processes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ramon.fernandez Ramon Fernandez Marina
              Reporter:
              eoin.brazil Eoin Brazil
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: