[SERVER-26672] Index bounds builder should generate exact bounds for timestamps Created: 18/Oct/16  Updated: 19/Nov/16  Resolved: 08/Nov/16

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.4.0-rc3

Type: Improvement Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Marko Vojvodic
Resolution: Done Votes: 1
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: Query 2016-11-21
Participants:

 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.



 Comments   
Comment by Githook User [ 07/Nov/16 ]

Author:

{u'username': u'm-vojvodic', u'name': u'Marko Vojvodic', u'email': u'marko.vojvodic@mongodb.com'}

Message: SERVER-26672 Generate exact bounds for timestamps in index bounds builder

This commit also replaces BSONElement::isSimpleType with
Indexability::isExactBoundsGenerating, since the isSimpleType construct
was only used within the query system.
Branch: master
https://github.com/mongodb/mongo/commit/8f769688f5b8ca6fa11e07d02600dbbb50178cff

Generated at Thu Feb 08 04:12:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.