-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Currently, the CursorResponseBuilder, operates on BSONObj to create the output for find, agg and getmore commands. However, once we complete SERVER-119296, SERVER-119294 and SERVER-119262, we should be able to modify CursorResponseBuilder to be more strongly typed and thus, allow find, agg and getmore to implement typedRun() and build a typed Reply object.
The main challenge here is that we currently have 2 types of Cursor replies:
1. CursorInitialReply which is used by find and agg to return the initial batch
2. CursorGetMoreReply which is used by getmore for all subsequent batches.
We should be able to use templating to allow us to have strongly typed versions of CursorResponseBuilder for both.
- depends on
-
SERVER-119294 Convert Find commands to TypedCommand
-
- Backlog
-
-
SERVER-119262 Convert agg commands to TypedCommand
-
- In Progress
-
-
SERVER-119296 Convert getMore commands to TypedCommand
-
- Closed
-