-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 1.36.2, 1.38.2
-
Component/s: Collection
-
None
-
Environment:OS:
node.js / npm versions:
Additional info:
-
2
-
Iteration Dobsonian
-
Not Needed
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