fix(server): increase person search limit (#12619)

This commit is contained in:
Jason Rasmussen
2024-09-13 12:33:16 -04:00
committed by GitHub
parent a373d50c31
commit c717fd2131
3 changed files with 3 additions and 11 deletions

View File

@@ -215,19 +215,14 @@ SELECT
"person"."isHidden" AS "person_isHidden"
FROM
"person" "person"
LEFT JOIN "asset_faces" "face" ON "face"."personId" = "person"."id"
WHERE
"person"."ownerId" = $1
AND (
LOWER("person"."name") LIKE $2
OR LOWER("person"."name") LIKE $3
)
GROUP BY
"person"."id"
ORDER BY
COUNT("face"."assetId") DESC
LIMIT
20
1000
-- PersonRepository.getDistinctNames
SELECT DISTINCT