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

Allow $in to be specified in partial index document filter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Index Maintenance, Querying
    • Query Optimization

    Description

      Users should be able to specify the $in predicate operators as part of a partial index document filter.

      For example:

      db.collection.ensureIndex({a: 1}, {partialFilterExpression: {b: {$in: [1, 2, 3]}}});
      db.collection.find({a: 1, b: 1}); // Should be able to use the above index. 
      

      Attachments

        Issue Links

          Activity

            People

              backlog-query-optimization Backlog - Query Optimization
              rassi J Rassi
              Votes:
              27 Vote for this issue
              Watchers:
              40 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: