[SERVER-5271] Add keysExamined, docsExamined, and nReturned counters to $currentOp Created: 09/Mar/12  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Diagnostics
Affects Version/s: 2.0.3
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Jared D. Cottrell Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: currentOp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
duplicates SERVER-23257 Report keysExamined/docsExamined/hasS... Closed
Related
related to SERVER-17862 Unify stats reporting for log/profile... Closed
Assigned Teams:
Query Execution
Participants:
Case:

 Description   

It would be useful to see how far large ops have gotten. M/Rs give some sense of progress. It could be useful in some cases to have nscanned info on queries. Not sure how hard that is to get, though.



 Comments   
Comment by David Storch [ 30/Apr/19 ]

james.wahlin if I understand correctly, this ticket tracks the work to add the keysExamined, docsExamined, and nReturned metrics to $currentOp, specifically so the progress of long-running operations is visible as they execute. Currently, these metrics are only written to the diagnostic log and to system.profile after the operation completes.

Comment by James Wahlin [ 25/Jan/19 ]

I believe this ticket can be closed as we report keysExamined and docsExamined for the mapReduce command. This test confirms this behavior.

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