Skip to content

feat: serve up to 500 documents per listing request - #2692

Merged
eddy-geek merged 1 commit into
masterfrom
feat/listing-limit-500
Nov 23, 2026
Merged

eddy-geek merged 1 commit into
masterfrom
feat/listing-limit-500

Conversation

@eddy-geek

Copy link
Copy Markdown
Contributor

LIMIT_MAX of the document listings goes from 100 to 500, for every type. The new map of the site (c2corg/c2c_ui /map) asks for the waypoints of its view at once, up to 500 from zoom 11. The UI does not offer more than 100 elsewhere.

The other endpoints keep their own limits (history, route suggestions, trash…). The limit description of the OpenAPI follows the constant.

Latency (local dev DB, warm, pl=fr)

Case 30 100 500
no filter (DB) 13 ms 24 ms 107 ms
bbox, Alps (ES) 20 ms 31 ms 124 ms

500 documents with pl=fr: about 515 KB, 40 KB gzipped. In production, a zoom-11 view of Chamonix holds about 300 waypoints.

Tests

test_get_collection_limit_max: 500 is served, 1000 is cut to 500.

The map of the waypoints asks for those of its view at once.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@eddy-geek
eddy-geek merged commit 75ccfb6 into master Nov 23, 2026
7 checks passed
@eddy-geek
eddy-geek deleted the feat/listing-limit-500 branch November 23, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant