[COMPASS-5327] Compass app performance degrades significantly with 3k+ collections / databases Created: 26/Nov/21  Updated: 29/Oct/23  Resolved: 29/Nov/21

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: 1.29.5
Fix Version/s: 1.29.6

Type: Bug Priority: Major - P3
Reporter: Sergey Petushkov Assignee: Sergey Petushkov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Documentation Changes: Not Needed
Sprint: Iteration Q

 Description   

Problem Statement/Rationale

When amount of databases or collections in a single database is more than ~ 3k, Compass performance degrades significantly, sometimes it's just getting stuck on the "Loading databases" screen without anything else happening

Steps to Reproduce

  • Connect to server with ~ 3k databases

Expected Results

  • You can navigate Compass and select database / collection

Actual Results

  • You are looking at the "Loading databases" overlay for a very long time, sometimes indefinitely


 Comments   
Comment by Githook User [ 02/Dec/21 ]

Author:

{'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(mongodb-compass): Do not overfetch `connectionInfo` and do not update state too often COMPASS-5327 (#2618)

  • chore(data-service): Return authInfo as part of the instance info
  • chore(data-service): Allow to provide privileges to avoid overfetching the authInfo
  • chore(database-model, collection-model): Pass instance privileges when fetching db/coll list to avoid overfetching authInfo
  • fix(sidebar, databases-collections): Avoid too many state updates when global overlay is active
  • chore: Prettier
  • chore(data-service): Move privileges fallback logic to its own private method
Comment by Githook User [ 01/Dec/21 ]

Author:

{'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(mongodb-compass): Do not overfetch `connectionInfo` and do not update state too often COMPASS-5327 (#2618)

  • chore(data-service): Return authInfo as part of the instance info
  • chore(data-service): Allow to provide privileges to avoid overfetching the authInfo
  • chore(database-model, collection-model): Pass instance privileges when fetching db/coll list to avoid overfetching authInfo
  • fix(sidebar, databases-collections): Avoid too many state updates when global overlay is active
  • chore: Prettier
  • chore(data-service): Move privileges fallback logic to its own private method
Comment by Githook User [ 29/Nov/21 ]

Author:

{'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(mongodb-compass): Do not overfetch `connectionInfo` and do not update state too often COMPASS-5327 (#2618)

  • chore(data-service): Return authInfo as part of the instance info
  • chore(data-service): Allow to provide privileges to avoid overfetching the authInfo
  • chore(database-model, collection-model): Pass instance privileges when fetching db/coll list to avoid overfetching authInfo
  • fix(sidebar, databases-collections): Avoid too many state updates when global overlay is active
  • chore: Prettier
  • chore(data-service): Move privileges fallback logic to its own private method
Comment by Githook User [ 29/Nov/21 ]

Author:

{'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(mongodb-compass): Do not overfetch `connectionInfo` and do not update state too often COMPASS-5327 (#2618)

  • chore(data-service): Return authInfo as part of the instance info
  • chore(data-service): Allow to provide privileges to avoid overfetching the authInfo
  • chore(database-model, collection-model): Pass instance privileges when fetching db/coll list to avoid overfetching authInfo
  • fix(sidebar, databases-collections): Avoid too many state updates when global overlay is active
  • chore: Prettier
  • chore(data-service): Move privileges fallback logic to its own private method
Comment by Githook User [ 29/Nov/21 ]

Author:

{'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(mongodb-compass): Do not overfetch `connectionInfo` and do not update state too often COMPASS-5327 (#2618)

  • chore(data-service): Return authInfo as part of the instance info
  • chore(data-service): Allow to provide privileges to avoid overfetching the authInfo
  • chore(database-model, collection-model): Pass instance privileges when fetching db/coll list to avoid overfetching authInfo
  • fix(sidebar, databases-collections): Avoid too many state updates when global overlay is active
  • chore: Prettier
  • chore(data-service): Move privileges fallback logic to its own private method
Comment by Githook User [ 29/Nov/21 ]

Author:

{'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(mongodb-compass): Do not overfetch `connectionInfo` and do not update state too often COMPASS-5327 (#2618)

  • chore(data-service): Return authInfo as part of the instance info
  • chore(data-service): Allow to provide privileges to avoid overfetching the authInfo
  • chore(database-model, collection-model): Pass instance privileges when fetching db/coll list to avoid overfetching authInfo
  • fix(sidebar, databases-collections): Avoid too many state updates when global overlay is active
  • chore: Prettier
  • chore(data-service): Move privileges fallback logic to its own private method
Comment by Githook User [ 29/Nov/21 ]

Author:

{'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(mongodb-compass): Do not overfetch `connectionInfo` and do not update state too often COMPASS-5327 (#2618)

  • chore(data-service): Return authInfo as part of the instance info
  • chore(data-service): Allow to provide privileges to avoid overfetching the authInfo
  • chore(database-model, collection-model): Pass instance privileges when fetching db/coll list to avoid overfetching authInfo
  • fix(sidebar, databases-collections): Avoid too many state updates when global overlay is active
  • chore: Prettier
  • chore(data-service): Move privileges fallback logic to its own private method
Generated at Wed Feb 07 22:39:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.