Skip to content

projectLead_list query is unoptimized #1980

@trillium

Description

@trillium

Overview

Optimize UserController.projectManager_list to reduce latency from sequential project fetches.

Action Items

  • Replace per-project Project.findById calls with a single Project.find({ _id: { $in: [...] } }).
  • Refactor logic to map projects to users after bulk fetch.
  • Only use Promise.all if bulk fetch isn't feasible.

Resources/Instructions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Final QA (product)

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions