[COMPASS-6993] Document count on collections->documents tab view wont update Created: 30/Jun/23  Updated: 15/Dec/23  Resolved: 25/Aug/23

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

Type: Bug Priority: Minor - P4
Reporter: cristianorvf N/A Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: OS X Ventura 13.4 M1.
Compass: 1.38.2
MongoDB: (LOCAL) v4.2.21 git version: b0aeed9445ff41af07449fa757e1f231bce990b3 


Attachments: PNG File Screenshot 2023-06-30 at 16.47.47.png     PNG File Screenshot 2023-06-30 at 16.52.08.png     PNG File Screenshot 2023-06-30 at 16.52.24.png    
Issue Links:
Related
is related to COMPASS-7058 Document count does not increase in c... Closed
Assigned Teams:
Developer Tools
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

Document count on collection->document tab does no update upon "external" inserts/deletes even if "find" button is hit. Navigating to different tabs (aggregations, indexes..) or running queries with filter fulfilled wont update it either. This relates to any collection size (600 docs up to 20mi docs checked)

It only updates if:

  • The document is inserted/deleted via compass itself
  • The user disconnects and reconnects to the cluster

Steps to Reproduce

Open compass, select a database, select a dummy collection. Using mongosh (embedded or not) insert or delete any document. 

Expected Results

The document count should update.

Actual Results

The count is not updated after inserts or deletes.

Additional Notes

Relates to COMPASS-4335



 Comments   
Comment by PM Bot [ 25/Aug/23 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to reopen this ticket if you're still experiencing the issue, and add a comment if you're able to provide more information.

Comment by PM Bot [ 17/Aug/23 ]

Hi cristianorvf@gmail.com! COMPASS-6993 is awaiting your response.

If this is still an issue for you, please open Jira to review the latest status and provide your feedback. Thanks!

Comment by Maurizio Casimirri [ 09/Aug/23 ]

cristianorvf@gmail.com this is by design in order to avoid costly operations on production servers. The document count on the collection header is calculated based on an estimate and is not refreshed.

You can however reload all the interface, including collection stats with a reload button on the sidebar. Let us know if that is sufficient and if the reload button is discoverable enough. Thanks!

Comment by PM Bot [ 30/Jun/23 ]

Hello cristianorvf@gmail.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:44:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.