[COMPASS-5119] Loading Compass with significant number of namespaces materially slows down Mongo server Created: 28/Sep/21  Updated: 28/Jun/23  Resolved: 05/Oct/22

Status: Closed
Project: Compass
Component/s: Performance
Affects Version/s: 1.28.4
Fix Version/s: No version

Type: Bug Priority: Critical - P2
Reporter: George Mihailov Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Apple MacBook M1 (ARM)
Mongo 5.0.2
Mongo Atlas M50 (NVMe SSD) !!!!


Issue Links:
Duplicate
duplicates COMPASS-5316 Load dbStats and collInfo / collStats... Closed
Related
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

Compass slows down production database. We just had yet another incident that was resolved simply by closing Compass app. This is not the first time, so I decided to create a ticket.

When connecting to a database with ~2,000 namespaces (~35,000 collections) it materially loads the server.

Steps to Reproduce

Not deterministic... when database is slow, go to Mongo Atlas / Real Time view and there will be commands under slowest operations from the IP address of local machine where Compass is open.

Expected Results

Don't kill production servers...

Actual Results

Initial connection to server takes 2-5 minutes.

Additional Notes

Any additional information that may be useful to include.



 Comments   
Comment by Jessica Sigafoos [ 05/Oct/22 ]

Hi george@qntify.co , thank you for reporting this!  We'll be addressing this issue as part of  COMPASS-5316.  If you'd like to receive updates, please add yourself as a watcher on COMPASS-5316.  Thanks again!

Comment by Alena Khineika [ 28/Sep/21 ]

This is a known issue. Unfortunately yes in the current implementation Сompass loads information about all namespaces and tries to fetch some data from these collections that causes lots of requests to the server. Moving the ticket to triage so we can discuss future work that is required.

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