Skip to content

Commit

Permalink
chore(server): add limit to people return (immich-app#3069)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Jul 2, 2023
1 parent d9e0847 commit 1df068b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/infra/repositories/person.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class PersonRepository implements IPersonRepository {
.orderBy('COUNT(face.assetId)', 'DESC')
.having('COUNT(face.assetId) >= :faces', { faces: options?.minimumFaceCount || 1 })
.groupBy('person.id')
.limit(500)
.getMany();
}

Expand Down

0 comments on commit 1df068b

Please sign in to comment.