From 83952387de53f697e53d8b8af3f7a63d53f9c546 Mon Sep 17 00:00:00 2001 From: casulit Date: Fri, 1 Nov 2024 23:26:03 +0800 Subject: [PATCH] perf(server): Reduce city query limit from 10 to 5 --- server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.ts b/server.ts index 6314627..2f04013 100644 --- a/server.ts +++ b/server.ts @@ -508,7 +508,7 @@ app.get("/api/properties/cities", async (c: Context) => { WHERE LOWER(ct.city) LIKE LOWER($1) GROUP BY ct.id, ct.city, ct.listing_city_id, rg.id, rg.region, rg.listing_region_id, pt.type_name ORDER BY ct.city ASC - LIMIT 10 + LIMIT 5 `, });