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:
@@ -189,7 +189,10 @@ public class BatchService : IBatchService
|
||||
BatchStatus? status, BatchType? batchType, Guid? assignedTo, BatchTrack? track,
|
||||
int page, int pageSize, string sortBy = "createdAt", string sortDirection = "desc")
|
||||
{
|
||||
var query = _db.DigitizationBatches.AsQueryable();
|
||||
pageSize = Math.Clamp(pageSize, 1, 100);
|
||||
page = Math.Max(1, page);
|
||||
|
||||
var query = _db.DigitizationBatches.AsNoTracking().AsQueryable();
|
||||
|
||||
if (status.HasValue)
|
||||
query = query.Where(b => b.Status == status.Value);
|
||||
|
||||
Reference in New Issue
Block a user