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

Index bounds builder should generate exact bounds for timestamps

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0-rc3
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • Query 2016-11-21

      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.

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

              Created:
              Updated:
              Resolved: