fix(server): vacuum after deleting people (#18299)

* vacuum after deleting people

* update sql
This commit is contained in:
Mert 2025-05-14 23:13:13 -04:00 committed by GitHub
parent cd03d0c0f2
commit 3a0ddfb92d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 18 additions and 19 deletions

View file

@ -13,12 +13,6 @@ set
"personId" = $1
where
"asset_faces"."sourceType" = $2
VACUUM
ANALYZE asset_faces,
face_search,
person
REINDEX TABLE asset_faces
REINDEX TABLE person
-- PersonRepository.delete
delete from "person"
@ -29,12 +23,6 @@ where
delete from "asset_faces"
where
"asset_faces"."sourceType" = $1
VACUUM
ANALYZE asset_faces,
face_search,
person
REINDEX TABLE asset_faces
REINDEX TABLE person
-- PersonRepository.getAllWithoutFaces
select