Index bounds builder should generate exact bounds for timestamps

XMLWordPrintableJSON

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

      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
            Reporter:
            Tess Avitabile (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: