Skip to content

perf(dashboard): refactor dashboard summary to use MongoDB aggregation pipelines #104

Closed as not planned

Description

@Diwakar-odds

Problem Statement

documentStore.all() in dashboard.routes.ts fetches the entire documents collection into memory simply to calculate counts and total storage bytes. This N+1/aggregation pattern scales extremely poorly.

Proposed Technical Approach

  • Replace the in-memory array
    educe and ilter operations with a $group aggregation pipeline to compute the summary directly on the MongoDB engine.

Activity

  1. added
    performanceMeasurable speed, latency, memory, or scalability work
    triageNeeds initial maintainer triage
    on Aug 8, 2026
  2. added
    documentationDocumentation, guides, examples, or comments
    easySmall change with low implementation risk
    on Aug 8, 2026
  3. added a commit that references this issue on Sep 1, 2026
    d3414bb
  4. github-actions commented on Sep 8, 2026

    @github-actions

    This issue has been inactive for a while. It will close automatically if there is no new activity. Comment with updated context if it is still relevant.

  5. added
    staleInactive issue or pull request pending closure
    on Sep 8, 2026
  6. github-actions commented on Sep 22, 2026

    @github-actions

    Closing as stale. Please open a fresh issue with current reproduction details if this is still needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ECSoC26-L2documentationDocumentation, guides, examples, or commentseasySmall change with low implementation riskperformanceMeasurable speed, latency, memory, or scalability workstaleInactive issue or pull request pending closuretriageNeeds initial maintainer triage

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions