[SERVER-29613] Query stageBuilder unnecessarily slow Created: 13/Jun/17  Updated: 30/Oct/23  Resolved: 28/Aug/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.5.8
Fix Version/s: 3.5.9

Type: Improvement Priority: Minor - P4
Reporter: Nathan Myers Assignee: Nathan Myers
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

In db/query/stage_builder.cpp, buildStages() is a series of if/else-if calls to the same virtual function, comparing against enumeration values, and repeated until a match. Of course this can be done better and more safely using a switch statement.



 Comments   
Comment by Githook User [ 14/Jun/17 ]

Author:

{u'username': u'nathan-myers-mongo', u'name': u'Nathan Myers', u'email': u'nathan.myers@10gen.com'}

Message: SERVER-29613 faster query buildStages
Branch: master
https://github.com/mongodb/mongo/commit/d2c699964b295ebb844a9732bf0a19c36c0fa699

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