From a93dcbc606d308da39f25c7de7a2cdbaa5c6bf2b Mon Sep 17 00:00:00 2001 From: dholms Date: Thu, 2 Nov 2023 17:41:37 -0500 Subject: [PATCH] limit the number of local records --- packages/pds/src/read-after-write/viewer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/pds/src/read-after-write/viewer.ts b/packages/pds/src/read-after-write/viewer.ts index 5f650ef659f..329ff3b9ad2 100644 --- a/packages/pds/src/read-after-write/viewer.ts +++ b/packages/pds/src/read-after-write/viewer.ts @@ -115,6 +115,7 @@ export class LocalViewer { 'record.indexedAt', ]) .where('record.repoRev', '>', rev) + .limit(10) .orderBy('record.repoRev', 'asc') .execute() return res.reduce(