Skip to content

Add new index definitions for various collections in hub-20-04-2026.txt#37

Merged
KilianBoute merged 1 commit into
mainfrom
36-cli-update-indexes-to-remove-combined-arrays
Apr 20, 2026
Merged

Add new index definitions for various collections in hub-20-04-2026.txt#37
KilianBoute merged 1 commit into
mainfrom
36-cli-update-indexes-to-remove-combined-arrays

Conversation

@KilianBoute
Copy link
Copy Markdown
Member

@KilianBoute KilianBoute commented Apr 20, 2026

Description

Why

Several high-traffic collections were missing explicit index definitions or relied on implicit/default indexing. As data volume grows, this leads to slower queries, higher CPU usage, and increased risk of performance regressions that are hard to detect late.

What this improves

This PR adds a complete, explicit set of index definitions for all relevant Hub collections, aligned with real query patterns (organisation, user, time-based, and compound lookups). Making indexes explicit:

  • Improves read performance and query predictability
  • Reduces full collection scans under load
  • Documents the intended access patterns in version control
  • Makes schema and performance changes auditable and repeatable across environments

Overall, this strengthens database performance, scalability, and operational reliability.

@KilianBoute KilianBoute linked an issue Apr 20, 2026 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@KilianBoute KilianBoute merged commit 0ac2d37 into main Apr 20, 2026
5 of 6 checks passed
@KilianBoute KilianBoute deleted the 36-cli-update-indexes-to-remove-combined-arrays branch April 20, 2026 13:04
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.

CLI > Update indexes to remove combined arrays

1 participant