Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6712

Hide inaccurate collection stats for time series collections

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.43.2
    • Affects Version/s: 1.36.2, 1.38.2
    • Component/s: Collection
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Not Needed
    • Iteration Dobsonian

      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 

            Assignee:
            vivian.xiao@mongodb.com Vivian Xiao (Inactive)
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: