[DOCS-16160] Investigate changes in SERVER-74453: Implement support for getMore against a mongot cursor created with a user-defined limit Created: 24/May/23  Updated: 13/Nov/23  Resolved: 20/Jul/23

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 6.0.7, 7.0.0-rc3, 5.0.20, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Kanchana Sekhar
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-74453 Implement support for getMore against... Closed
Participants:
Days since reply: 29 weeks ago

 Description   
Original Downstream Change Summary

This ticket adds additional fields to a getMore command for a $search command sent to mongot from mongod.

Description of Linked Ticket

The first batch from mongot may not contain the full set of results for the following cases:

  1. A document may be filtered out by the $idLookup stage
  2. 16MB batch size limit (more likely with storedSource, since normally mongot only returns _id and a score)

For these cases, mongod should not need to request the full limit for the subsequent getMore. Instead, we could build a method for only requesting (limit - N) results, where N is the number of documents which made it past the $idLookup stage. The actual approach will be left up to the implementation.

Note that for storedSource queries, there is no $idLookup stage so the solution should not be tied to the presence of it. Also there is no guarantee that one of the cases above does not happen again for the subsequent getMore, so the solution should be generic and handle this. 



 Comments   
Comment by Militsa Sotirova [ 19/Jul/23 ]

Yes, this is internal protocol between mongot and mongod so a user shouldn't be directly exposed to the changes made here.

Comment by Kanchana Sekhar [ 17/Jul/23 ]

This may not require any documentation as this is internal protocol between mongot and mongod. nicholas.zolnierz@mongodb.com to confirm.

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