feat: implement server-side product row data fetching with caching and aggregation logic

This commit is contained in:
Michael committed 2026-04-02 17:28:23 +02:00
1 parent 88a3121c92
commit 43644a7d1d
1 file changed
+1 -1
+1 -1
View File
@@ -377,7 +377,7 @@ export async function getProductRows(input: GetProductRowsInput): Promise<GetPro
return { rows: filtered, total, page: 0, pageSize: total, totalPages: 1 };
}
const safePageSize = Math.max(1, Math.min(pageSize, 500));
const safePageSize = Math.max(1, Math.min(pageSize, 20000));
const totalPages = Math.ceil(total / safePageSize);
const safePage = Math.max(0, Math.min(page, totalPages - 1));
const start = safePage * safePageSize;