GeriLife / GeriLife/wellbeing

Aggregate activity report is slow (and blocking) process with large amount of data

Open
#582 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
13
Forks
6
PR merge metrics
No merged PRs in 30d

Description

When running the `aggregateActivitiesAndPopulateAggregateCollection` method with a large amount of activity data, the system becomes unresponsive. This seems to be a blocking process.

Determine how to optimize the aggregate activities report method so that it will run faster and not block the main process.

Contributor guide

Open the contributing guide

Research direction

Locate the aggregateActivitiesAndPopulateAggregateCollection method and trace how it processes large activity datasets. Reproduce the unresponsive behavior with a large dataset, then verify that aggregation completes faster without blocking the main process.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend, data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.