Skip to content

Commit

Permalink
limit the number of local records
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 2, 2023
1 parent 5d234cc commit a93dcbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/pds/src/read-after-write/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export class LocalViewer {
'record.indexedAt',
])
.where('record.repoRev', '>', rev)
.limit(10)
.orderBy('record.repoRev', 'asc')
.execute()
return res.reduce(
Expand Down

0 comments on commit a93dcbc

Please sign in to comment.