[COMPASS-7183] MongoDB Compass does not calculate items count Created: 03/Sep/23  Updated: 27/Oct/23  Resolved: 04/Sep/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Roman Puzikov Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows, MongoDB Compass


Attachments: PNG File image-2023-09-03-13-09-54-861.png    
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

I want to see how many entries have been added during last three days.

I tried to follow https://www.mongodb.com/community/forums/t/how-we-can-use-count-clause-in-mongodb-compass/9651/2

Expected result: number of entries in filter result.
Actual result: N/A.



 Comments   
Comment by Sergey Petushkov [ 04/Sep/23 ]

We're open to feature suggestions through the feedback portal

Comment by Roman Puzikov [ 04/Sep/23 ]

Hi sergey.petushkov@mongodb.com 
Thank you for response. 
Yes I already used shell for calculation.
But very sad that UI tool cannot be improved for such simple functionality.

Comment by Sergey Petushkov [ 04/Sep/23 ]

Hey roman.puzikov@riverty.com, document count has a cap of 5 seconds that can't be overriden even when setting maxTimeMS manually. Compass is erring on the side of being safe here and not overloading clusters with operations that are potentially too heavy on the clusters (count being one of those). If you need to get a count of a collection, you can use mongosh terminal that is integrated in Compass, as also suggested in the comment you are linking to

Comment by PM Bot [ 03/Sep/23 ]

Hello roman.puzikov@riverty.com, thank you for reaching out to us! The team will review your issue and get back to you soon as soon as possible.

Please review your issue to ensure you've included your environment details and have attached relevant logs (with any sensitive data redacted), so that we're best able to provide you a timely and thorough response. Thanks again!

Generated at Wed Feb 07 22:45:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.