Skip to content

High performance self-hosted photo and video management solution.

chore: remove limit in memory generation (#16920)

Alex21954939cf67
diff --git a/server/src/queries/asset.repository.sql b/server/src/queries/asset.repository.sql
index 1fd8f55f31..ceb73e0e7b 100644
--- a/server/src/queries/asset.repository.sql
+++ b/server/src/queries/asset.repository.sql
@@ -66,8 +66,6 @@ group by
("localDateTime" at time zone 'UTC')::date
order by
("localDateTime" at time zone 'UTC')::date desc
-limit
- $8
-- AssetRepository.getByIds
select
diff --git a/server/src/repositories/asset.repository.ts b/server/src/repositories/asset.repository.ts
index 1e6429b32d..59df871ba8 100644
--- a/server/src/repositories/asset.repository.ts
+++ b/server/src/repositories/asset.repository.ts
@@ -291,7 +291,6 @@ export class AssetRepository {
.select((eb) => eb.fn.jsonAgg(eb.table('res')).as('assets'))
.groupBy(sql`("localDateTime" at time zone 'UTC')::date`)
.orderBy(sql`("localDateTime" at time zone 'UTC')::date`, 'desc')
- .limit(10)
.execute();
}