Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-990

Support partial indexes

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2
    • Affects Version/s: None
    • Component/s: None
    • None

      MongoDB 3.2 adds support for partial indexes. PyMongo doesn't technically need any changes to support them but we should do two things:

      • Update the docs for Collection.create_index and Collection.ensure_index to list the new option, partialFilterExpression
      • Add a test to make sure the option is passed to the server properly when used (MongoDb 3.2+ only).

      For the test we can port this from jstests:

      https://github.com/mongodb/mongo/blob/master/jstests/core/index_partial_read_ops.js#L12-L37

            Assignee:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: