-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
optimiseOptimise the code for better performanceOptimise the code for better performancerefactorRefactor code for readability and maintainabilityRefactor code for readability and maintainability
Description
Problem:
Controllers make multiple database calls where single queries could suffice. Chat and message endpoints don't use population or aggregation pipelines effectively.
Why it's an issue:
- Potential N+1 query problems
- Slower API response times
- Inefficient database usage
Acceptance Criteria:
- Implement proper populate queries in chat endpoints
- Use aggregation pipelines where beneficial
- Reduce number of database calls per request
Metadata
Metadata
Assignees
Labels
optimiseOptimise the code for better performanceOptimise the code for better performancerefactorRefactor code for readability and maintainabilityRefactor code for readability and maintainability