mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 09:15:44 +03:00
fix(server): increase person search limit (#12619)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user