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

Index bounds builder should generate exact bounds for timestamps

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0-rc3
    • Component/s: Querying
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      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

            Assignee:
            marko.vojvodic Marko Vojvodic
            Reporter:
            tess.avitabile Tess Avitabile
            Participants:
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: