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

Index bounds builder should generate exact bounds for timestamps

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.4.0-rc3
    • Querying
    • Fully Compatible
    • Query 2016-11-21

    Description

      The index bounds builder can generate exact bounds for timestamps, but it does not currently, because timestamps are not considered a simple BSON type: https://github.com/mongodb/mongo/blob/r3.4.0-rc0/src/mongo/db/query/index_bounds_builder.cpp#L60. This can cause us to do an unnecessary FETCH stage.

      As part of this work, we should consider removing isSimpleType() from BSONElement, since it is only used within the query system.

      Attachments

        Activity

          People

            marko.vojvodic@mongodb.com Marko Vojvodic
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: