typesense / typesense/typesense
Support throttling for incrementing the `count` in the queries collection
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.6k
- Forks
- 973
- Avg merge
- 18h 45m
- Merged PRs (30d)
- 4
Description
See related discussion on Slack
It would be useful — especially for preventing abuse — if there was a configuration option that allowed you to set a limit for the amount of times the count of a query is incremented within N seconds/minutes/hours. So that, for example, even if there's 1,000 requests for the same query within the span of 3 hours, all that just increments count by 1. This would help nullify a whole class of security/abuse concerns and keep the data more sane.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names the queries collection but no files, tests, or entry points. Start by locating where query counts are incremented and review the related Slack discussion for requirements. Done means a configurable time window limits repeated increments for the same query, with tests covering the throttling behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- search
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100