typesense / typesense/typesense

Support throttling for incrementing the `count` in the queries collection

Open
#1,289 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature:analytics
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.