Cache search results to avoid redundant scrapes for repeated queries #48
Labels
No labels
accessibility
backlog
browser-pool
bug
cloud
enhancement
feature
infra
paid-tier
performance
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/snipe#48
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Under load (and in normal usage) the same or similar search queries fire multiple times within a short window. Each hits the Kasada scraper unnecessarily. Spike #5: 218 search requests, many likely duplicates.
Proposed Fix
Add a short-TTL cache keyed on
(query, filters_hash). On hit, return cached results immediately without touching the scraper.search_cache(query_hash, results_json, cached_at)— reusedata/snipe.dbSEARCH_CACHE_TTL_Senv)Expected Impact
Notes