care icon indicating copy to clipboard operation
care copied to clipboard

Fixed N+1 query occurrence in the /api/v1/facility/

Open dhruv-goyal-10 opened this issue 8 months ago • 6 comments

Changes Made

Annotated the count of beds & patients in Facility Queryset, which were causing N + 1 query problem.

Associated Issue

  • Fixes #2256

Merge Checklist

  • [X] Tests added/fixed
  • [ ] Update docs in /docs
  • [X] Linting Complete
  • [ ] Any other necessary step

@coronasafe/care-backend-maintainers @coronasafe/care-backend-admins

dhruv-goyal-10 avatar Jun 10 '24 17:06 dhruv-goyal-10