Fix performance issues with /api/stockCardRangeSummaries endpoint

Description

Currently this endpoint performs between 1 to 3 seconds on perftest server. Ideally it would be below 500ms.
The biggest issue is that this endpoint retrieves all Stock Card Line Items and calculates stock on hand in memory to calculate stock out days and summary for each stock reason tag.

Status

Assignee

Unassigned

Reporter

Mateusz Kwiatkowski

Components

Priority

Major