fix(server): fix inconsistent explore queries (#5774)

* remove limits

* update sql
This commit is contained in:
Mert
2023-12-17 12:04:35 -05:00
committed by GitHub
parent 08f66c2ae5
commit e3fa32ad23
2 changed files with 2 additions and 14 deletions

View File

@@ -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",