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

Support partial indexes

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.2
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: