refactor: stream queue migration (#17997)

This commit is contained in:
Jason Rasmussen 2025-04-30 12:23:13 -04:00 committed by GitHub
parent 732b06eec8
commit 526c02297c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 25 additions and 98 deletions

View file

@ -495,3 +495,11 @@ where
and "job_status"."facesRecognizedAt" is null
order by
"assets"."createdAt" desc
-- AssetJobRepository.streamForMigrationJob
select
"id"
from
"assets"
where
"assets"."deletedAt" is null

View file

@ -232,20 +232,6 @@ where
limit
$3
-- AssetRepository.getWithout (sidecar)
select
"assets".*
from
"assets"
where
"deletedAt" is null
order by
"createdAt"
limit
$1
offset
$2
-- AssetRepository.getTimeBuckets
with
"assets" as (