mirror of
https://github.com/immich-app/immich.git
synced 2025-12-25 09:14:58 +03:00
fix(server): fix inconsistent explore queries (#5774)
* remove limits * update sql
This commit is contained in:
@@ -618,10 +618,6 @@ WITH
|
||||
city
|
||||
HAVING
|
||||
count(city) >= $1
|
||||
ORDER BY
|
||||
random() ASC
|
||||
LIMIT
|
||||
12
|
||||
)
|
||||
SELECT DISTINCT
|
||||
ON (c.city) "asset"."id" AS "data",
|
||||
@@ -653,10 +649,6 @@ WITH
|
||||
tag
|
||||
HAVING
|
||||
count(*) >= $1
|
||||
ORDER BY
|
||||
random() ASC
|
||||
LIMIT
|
||||
12
|
||||
)
|
||||
SELECT DISTINCT
|
||||
ON (unnest("si"."tags")) "asset"."id" AS "data",
|
||||
|
||||
Reference in New Issue
Block a user