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

Query Settings should forbid setting empty 'allowedIndexes'

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • QE 2024-02-19

    Description

      Currently it's legal for a user to specify an empty list as the allowed indexes. As opposed to index filters, query settings consider `$natural` as an index, and leaving this out forbids collection scans outright. 

      As there are no real use-cases for setting an empty allowed indexes list, and this just causes additional re-planning it's been decided to validate against this.

      Attachments

        Activity

          People

            serhii.lysenko@mongodb.com Serhii Lysenko
            catalin.sumanaru@mongodb.com Catalin Sumanaru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: