Skip to content

Commit

Permalink
perf(server): Reduce city query limit from 10 to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit committed Nov 1, 2024
1 parent 5f9af6d commit 8395238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
`,
});

Expand Down

0 comments on commit 8395238

Please sign in to comment.