[COMPASS-4657] Big count of documents is displayed as N/A on the action bar Created: 19/Feb/21  Updated: 02/Dec/22

Status: Open
Project: Compass
Component/s: Documents
Affects Version/s: 1.25.0
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Olena Protsiuk (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mac, windows


Attachments: PNG File MongoDB Compass Beta - TestDb.25mln 2021-02-19 15-13-57.png    
Documentation Changes: Not Needed

 Description   

Steps to Reproduce

  1. Open collection with large amount of documents (>=10,000,000)
  2. Check the number in "Displaying documents 1 - 20 of <count>"

Expected Results

Count of displayed documents should be displayed, even its lagre.

Actual Results

Displaying documents 1 - 20 of N/A



 Comments   
Comment by Le Roux Bodenstein [ 24/Mar/22 ]

If the count times out we display N/A. We try to optimise how we do the count but mongodb still easily does a colscan and if that happens you're likely to reach the timeout for large collections. And when you get to the timeout it will display N/A rather than hang or crash or murder the server.

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