Skip to content

Clamp limit query param to 100 to protect DB & site performance #2

@UdayRajVadeghar

Description

@UdayRajVadeghar

https://cfcheatdetector.vercel.app/leader?page=1&limit=100000&search=

Currently the limit query param can be set to an arbitrarily large number (e.g. limit=100000), which risks pulling massive result sets into memory and degrading DB and site performance. I propose capping limit to 100 by default. This protects system stability while keeping the API useful, users can still paginate to retrieve more results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions