mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
perf(server): optimize people page query (#27346)
Optimize People page query: modified SQL to use index for faster performance
This commit is contained in:
@@ -228,12 +228,12 @@ select
|
||||
from
|
||||
"asset_face"
|
||||
left join "asset" on "asset"."id" = "asset_face"."assetId"
|
||||
and "asset_face"."personId" = $1
|
||||
and "asset"."visibility" = 'timeline'
|
||||
and "asset"."deletedAt" is null
|
||||
where
|
||||
"asset_face"."deletedAt" is null
|
||||
and "asset_face"."isVisible" is true
|
||||
and "asset_face"."personId" = $1
|
||||
|
||||
-- PersonRepository.getNumberOfPeople
|
||||
select
|
||||
|
||||
Reference in New Issue
Block a user