[SERVER-5306] In runCommand( "top" ) when running dbn.collection.distinct("column") not increments queries counter in collection data Created: 14/Mar/12  Updated: 06/Dec/22  Resolved: 07/Mar/17

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 2.0.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Leonid Neizberg Assignee: Backlog - Query Team (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 64bit


Assigned Teams:
Query
Operating System: ALL
Participants:

 Description   

1. when running db.collection.distinct("column") not increments queries counter in collection data (runCommand( "top" ).totals["dbn.collection"]) ,
but in dbn (runCommand( "top" ).totals["dbn"])
When I run "top" on index it's almost empty, why?
It's not clear what operations going to dbname.
In my case it's for sure it have to be in collection or index.

2. Also explain() function doesn't work with distinct.
In my case I have index on "column", so I hope it work with index - it would



 Comments   
Comment by Ian Whalen (Inactive) [ 07/Mar/17 ]

1) This now updates the commands counter for the collection.

2) This was added in 3.2.0 (see SERVER-15020).

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