mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore: remove limit in memory generation (#16920)
* chore: remove limit in memory generation * generate sql * chore: assets limit
This commit is contained in:
parent
d537f2c2d1
commit
21954939cf
2 changed files with 0 additions and 3 deletions
|
|
@ -66,8 +66,6 @@ group by
|
||||||
("localDateTime" at time zone 'UTC')::date
|
("localDateTime" at time zone 'UTC')::date
|
||||||
order by
|
order by
|
||||||
("localDateTime" at time zone 'UTC')::date desc
|
("localDateTime" at time zone 'UTC')::date desc
|
||||||
limit
|
|
||||||
$8
|
|
||||||
|
|
||||||
-- AssetRepository.getByIds
|
-- AssetRepository.getByIds
|
||||||
select
|
select
|
||||||
|
|
|
||||||
|
|
@ -291,7 +291,6 @@ export class AssetRepository {
|
||||||
.select((eb) => eb.fn.jsonAgg(eb.table('res')).as('assets'))
|
.select((eb) => eb.fn.jsonAgg(eb.table('res')).as('assets'))
|
||||||
.groupBy(sql`("localDateTime" at time zone 'UTC')::date`)
|
.groupBy(sql`("localDateTime" at time zone 'UTC')::date`)
|
||||||
.orderBy(sql`("localDateTime" at time zone 'UTC')::date`, 'desc')
|
.orderBy(sql`("localDateTime" at time zone 'UTC')::date`, 'desc')
|
||||||
.limit(10)
|
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue