Harden API memory and CPU usage across Phases 19–22.
Bound list/PDF payloads, stream MinIO I/O with cancellation, paginate history and FHIR $everything, tighten OCR lifetimes/buffers, and add phase tracking docs.
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
|
||||
**Phases 14–18 (UI redesign)** are planned: restyle and re-layout `vigilcare-records-web` against [designs/design-doc.md](designs/design-doc.md) without new backend behavior. Implementation guides: [plans/](plans/).
|
||||
|
||||
**Phases 19–22 (performance hardening)** address CPU/memory/reliability findings from the API performance audit. Tracker: [plans/performance-hardening-overview.md](plans/performance-hardening-overview.md).
|
||||
|
||||
| Phase | Scope | Status |
|
||||
|---|---|---|
|
||||
| 1 | Schema, auth, roles, batch CRUD, MinIO upload, status machine | Done |
|
||||
@@ -26,8 +28,12 @@
|
||||
| 16 | UI redesign: Entry / Verification / Clinical Approval workstation layouts | Planned |
|
||||
| 17 | UI redesign: Intake, Cover Sheets, Live Capture, History, Dashboard, FHIR Explorer | Planned |
|
||||
| 18 | UI redesign: surface unused APIs (batch events, work queues, Users admin) | Done |
|
||||
| 19 | Perf: pageSize/PDF clamps, AsNoTracking, slim GetDocument, FHIR serializer | Done |
|
||||
| 20 | Perf: MinIO async/CT, history + `$everything` paging, overview aggregates | Done |
|
||||
| 21 | Perf: OCR CT, Azure singleton client, buffer reductions, RawText cap | Done |
|
||||
| 22 | Perf: fuzzy Take cap, seed N+1/CT, PromoteAsync CT, ops notes | Done |
|
||||
|
||||
**Verification scripts:** `./scripts/run-vigilcare-records-verification-p9.sh` (full workflow + metrics), `./scripts/run-vigilcare-records-phase-10-verification.sh`, `./scripts/run-vigilcare-records-phase-11-verification.sh`, `./scripts/run-vigilcare-records-phase-13-verification.sh`. Phases 14–18 verify via Vitest + manual checklists in each plan.
|
||||
**Verification scripts:** `./scripts/run-vigilcare-records-verification-p9.sh` (full workflow + metrics), `./scripts/run-vigilcare-records-phase-10-verification.sh`, `./scripts/run-vigilcare-records-phase-11-verification.sh`, `./scripts/run-vigilcare-records-phase-13-verification.sh`. Phases 14–18 verify via Vitest + manual checklists in each plan. Phases 19–22 verify via `dotnet test` + checklists in each plan.
|
||||
|
||||
See [README.md](../README.md) for API reference, quick start, and [digitization-workstation-guide.md](digitization-workstation-guide.md) for operator workflows.
|
||||
|
||||
@@ -863,6 +869,19 @@ This phase connects Records to Clinical. Run against a VigilCareClinical Phase 2
|
||||
|
||||
---
|
||||
|
||||
### Performance hardening roadmap (Phases 19–22)
|
||||
|
||||
Backend remediations for unbounded queries, document buffering, OCR memory, and cancellation. Overview: [plans/performance-hardening-overview.md](plans/performance-hardening-overview.md).
|
||||
|
||||
| Phase | Plan | Focus |
|
||||
|---|---|---|
|
||||
| 19 | [plans/phase-19-plan.md](plans/phase-19-plan.md) | Bounds and read-path hygiene |
|
||||
| 20 | [plans/phase-20-plan.md](plans/phase-20-plan.md) | MinIO + history / FHIR memory safety |
|
||||
| 21 | [plans/phase-21-plan.md](plans/phase-21-plan.md) | OCR reliability and cancellation |
|
||||
| 22 | [plans/phase-22-plan.md](plans/phase-22-plan.md) | Polish, seed, promote CT, ops notes |
|
||||
|
||||
---
|
||||
|
||||
## Deployment Notes (Small Island Context)
|
||||
|
||||
- **Single-site tenant:** One hospital or health district per deployment. No cross-island federation in v1.
|
||||
@@ -905,7 +924,8 @@ This phase connects Records to Clinical. Run against a VigilCareClinical Phase 2
|
||||
|
||||
- [README.md](../README.md) — API reference, quick start, verification scripts, data models
|
||||
- [digitization-workstation-guide.md](digitization-workstation-guide.md) — clinical scenarios (backfill, live capture, corrections)
|
||||
- [plans/](plans/) — phase implementation guides (Phases 14–18 UI redesign; Phase 1–13 plans not in repo)
|
||||
- [plans/](plans/) — phase implementation guides (Phases 14–18 UI redesign; Phases 19–22 performance hardening; Phase 1–13 plans not in repo)
|
||||
- [plans/performance-hardening-overview.md](plans/performance-hardening-overview.md) — audit finding → phase tracker
|
||||
- [designs/design-doc.md](designs/design-doc.md) — UI/UX design specification for the workstation redesign
|
||||
- [vigilcare-records-gap-analysis.md](vigilcare-records-gap-analysis.md) — post-phase hardening tracker and remaining open items
|
||||
- [vigilcare-clinical-api-prd.md](vigilcare-clinical-api-prd.md) — downstream alerting and observation ingest
|
||||
|
||||
Reference in New Issue
Block a user