Fix performance of requisition update

Description

Requisition update takes longer after implementing v2 endpoints. It is caused by retrieving both orderables and approved products each time a requisition is updated. We could try to avoid retrieving all of these resources to improve performance of PUT operation.

*Acceptance Criteria: *

  • [UPDATE_REQUISITION_V2] takes less than 30 seconds (currently it takes 80s+) for Essential Meds program

  • Save still works properly

  • Add profiler result in a comment to this ticket

Status

Assignee

Joanna Bebak

Reporter

Paulina Buzderewicz

Labels

Story Points

8

Time tracking

104h

Epic Link

Components

Fix versions

Priority

Major
Configure