From 1df068bac95cd024c1cc2d04c1ade11ddca3b9cd Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 2 Jul 2023 15:28:53 -0500 Subject: [PATCH] chore(server): add limit to people return (#3069) --- server/src/infra/repositories/person.repository.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/infra/repositories/person.repository.ts b/server/src/infra/repositories/person.repository.ts index 3455109bc..8294e0d27 100644 --- a/server/src/infra/repositories/person.repository.ts +++ b/server/src/infra/repositories/person.repository.ts @@ -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(); }