[COMPASS-6712] Hide or fix inaccurate collection stats for time series collections Created: 10/Apr/23  Updated: 11/Jul/23

Status: Open
Project: Compass
Component/s: Collection
Affects Version/s: 1.36.2, 1.38.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Rhys Howell Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: needs-prioritization
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Attachments: PNG File Screenshot 2023-04-10 at 9.56.52 AM.png    
Story Points: 2

 Description   

We currently don't show collection statistics for time series collections in Compass as that information isn't available in the collection stats command result on time series collections.

Since we don't have a count here we not be showing any numbers here as they are misleading.

We should remove these collection stats on this page, or add additional support to fetch this information if possible. See how we render the stats for views for an example of where we don't show this information.

I'm thinking we should be able to show those statistics, however it will require a few additional queries (a count and possibly a look). I don't know the performance implications of those queries. If they are costly we should not show them, or show an option to run the expensive query, with information about the performance.

https://www.mongodb.com/docs/manual/reference/command/collStats/#mongodb-dbcommand-dbcmd.collStats

Initially from slack thread: https://mongodb.slack.com/archives/C0U7K0MC3/p1681045794469669 


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