Improve performance of /periodsForInitiate

Description

Currently, the /periodsForInitiate endpoint takes over 8 seconds when tested on the Malawi dataset. This is way more than is acceptable for a simple task that this endpoint does.

The retrieval of the periods from reference data takes only a couple of milliseconds, so most of the time is spent in the origin service.

Acceptance criteria:

  • The endpoint takes less than 1 second when tested on the MW dataset

Status

Assignee

Paulina Buzderewicz

Reporter

Sebastian Brudziński

Story Points

5

Time tracking

24h

Epic Link

Components

Sprint

None

Fix versions

Priority

Critical
Configure