[SERVER-71824] Estimate error and speed of doc.getApproximateSize() vs. doc.toBson().objsize() Created: 05/Dec/22  Updated: 29/Oct/23  Resolved: 04/Jan/23

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

Type: Task Priority: Major - P3
Reporter: Romans Kasperovics Assignee: Romans Kasperovics
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-57011 DocumentStorage caches nested objects... Backlog
Backwards Compatibility: Fully Compatible
Sprint: QE 2022-12-12, QE 2022-12-26, QE 2023-01-09
Participants:

 Description   
  • Check if the API always gives the upper bound (the real size cannot exceed the estimated)
  • Check if the API considers projections


 Comments   
Comment by Githook User [ 04/Jan/23 ]

Author:

{'name': 'Romans Kasperovics', 'email': 'romans.kasperovics@mongodb.com', 'username': 'romanskas'}

Message: SERVER-71824 Add micro-benchmark for Document::toBson()
Branch: master
https://github.com/mongodb/mongo/commit/d2bbfe63808d480804ec843b7ae7be943a490790

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