refactor: stream asset ids for library queue jobs (#16666)

This commit is contained in:
Jason Rasmussen
2025-03-06 20:22:17 -05:00
committed by GitHub
parent 5c82c485d7
commit d45fa491ce
6 changed files with 65 additions and 66 deletions
@@ -144,4 +144,8 @@ export class LibraryRepository {
total: Number(stats.photos) + Number(stats.videos),
};
}
streamAssetIds(libraryId: string) {
return this.db.selectFrom('assets').select(['id']).where('libraryId', '=', libraryId).stream();
}
}