[SERVER-83627] Convert CursorResponse::parseFromBSON to IDL Created: 28/Nov/23  Updated: 13/Dec/23  Resolved: 13/Dec/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Ryan Berryhill
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-83629 Extend CursorResponse with new metrics Closed
is depended on by SERVER-84012 Make CursorResponse::getCursorType re... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2023-12-11, Service Arch 2023-12-25
Participants:

 Description   

CursorResponse::parseFromBSON currently uses a parse based on the inefficient BSONObj::getField. Performance can be improved by switching this to IDL. The file src/mongo/db/query/cursor_response.idl has several types that have many of the fields needed to parse a cursor response but none of them are complete.

 

The calls to cmdResponse and cursorObj should be handled by IDL.



 Comments   
Comment by Githook User [ 12/Dec/23 ]

Author:

{'name': 'Ryan Berryhill', 'email': 'ryan.berryhill@mongodb.com', 'username': 'ryanberryhill'}

Message: SERVER-83627 Use IDL to parse in CursorResponse::parseFromBSON

GitOrigin-RevId: 552720e9fd3894df1f6816d8bb3e030185f57b34
Branch: master
https://github.com/mongodb/mongo/commit/121120a7e6e5daeb608a835615bbebc9a8f66000

Generated at Thu Feb 08 06:52:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.