[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: |