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

Allow $in to be specified in partial index document filter

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance, Querying
    • Labels:
    • Query Optimization

      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. 
      

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            rassi J Rassi
            Votes:
            27 Vote for this issue
            Watchers:
            40 Start watching this issue

              Created:
              Updated:
              Resolved: