Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-405

MONGOSH does not respect the "notablescan" setting on a mongod

    • Type: Icon: Bug Bug
    • Resolution: Declined
    • Priority: Icon: Critical - P2 Critical - P2
    • No version
    • Affects Version/s: 0.5.0
    • Component/s: Query
    • None
    • Environment:
      mongoDB Atlas, three node replica set running mongoDB server 4.0.20
    • Not Needed

      Queries run against a mongoD cluster with the notablescan option turned on (referred to as "Require Indexes for All Queries" in the Atlas cluster configuration options) do not respect this option when enabled. I am able to perform both filter and sort queries against fields that are not indexed.

      A very simple query against my cluster: db.posting.find({},{cd:1}).limit(1).sort({cd:1}) . cd is not indexed, though this query goes through.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jpf478@snagajob.com Jason Ford
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: