Reflect in UI that Application Statistics in Admin Area can show approximate data for values more than 10,000
Problem to solve
Currently, the statistics section in Admin Area > Dashboard > Instance overview uses Get current application statistics API to get the data, and it might show approximate data according to the note from the docs. It is because we use different strategies to calculate values. For values less than 10k we use exact counts, but for values more than 10k we use ReltuplesCountStrategy
and TablesampleCountStrategy
:
- https://gitlab.com/gitlab-org/gitlab/-/blob/v16.7.0-ee/lib/gitlab/database/count/exact_count_strategy.rb?ref_type=tags
- https://gitlab.com/gitlab-org/gitlab/-/blob/v16.7.0-ee/lib/gitlab/database/count/reltuples_count_strategy.rb?ref_type=tags
- https://gitlab.com/gitlab-org/gitlab/-/blob/v16.7.0-ee/lib/gitlab/database/count/tablesample_count_strategy.rb?ref_type=tags
Admin Dashboard (for reference) |
---|
Proposal
Add an indication that Statistics shown in the UI might be approximate.
Intended users
Admin users.
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.