Skip to content

Skip per-collection stats on servers and databases pages#169

Merged
coyotte508 merged 1 commit into
huggingface:masterfrom
liraelia:perf/skip-collection-stats
May 29, 2026
Merged

Skip per-collection stats on servers and databases pages#169
coyotte508 merged 1 commit into
huggingface:masterfrom
liraelia:perf/skip-collection-stats

Conversation

@liraelia

@liraelia liraelia commented May 29, 2026

Copy link
Copy Markdown
Contributor
  • This removes calling $collStats and list indexes for every collection in every database on every page load. This increases performance dramatically.
  • collection details will load only when database is opened

Note

Low Risk
Read-path performance optimization with simpler UI on list pages; no auth or write-path changes.

Overview
Stops eagerly loading per-collection MongoDB stats on the servers list and per-database list views so page loads avoid db.stats() per database (for collection counts) and getCollectionJson / collection listing on the databases page.

The servers overview no longer fetches collection counts per database; the database tooltip shows only name and size. The databases table still shows nCollections from db.stats() but drops the hover table of every collection’s size. Per-collection detail remains on the collections route when a database is opened.

Reviewed by Cursor Bugbot for commit d963ee6. Bugbot is set up for automated code reviews on this repo. Configure here.

@coyotte508 coyotte508 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess

@coyotte508 coyotte508 merged commit 5a556e7 into huggingface:master May 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants