bcgov / hcap

Application supporting access to the Health Career Access Program (HCAP) for employers and participants.
Apache License 2.0
2 stars 1 forks source link

HCAP-1334: Optimize query for joining hires to site phase allocations #877

Closed rhattie-ey closed 1 year ago

rhattie-ey commented 1 year ago

HCAP-1334 (blocks HCAP-1298) Also fixes HCAP-1391

This PR optimizes the code used to get the phase allocation and hires for a given site. DB impact is now limited to two queries, and only the data needed is sent over the wire.

In addition, this PR:

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication