ergoplatform / ergoplatform/explorer-backend
Speed up search queries
- Dominant language
- Scala
- Stars
- 23
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Search queries behind `https://api.ergoplatform.com/search?query=` currently look for partial matches e.g. `where address like '%
%'`.I think most times people will search for a full address/tx_id/header_id anyway, so could be made much faster using exact matches: `where address = '
'` .Happy to submit a PR if you guys are happy to drop partial matching functionality.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the search request at https://api.ergoplatform.com/search?query= and locate the queries for address, tx_id, and header_id. Compare the current partial-match behavior with exact matching and confirm how the project tests search results and query performance. Done means the accepted matching behavior is documented and covered without leaving the partial-match decision unresolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala, sql
- Domain
- api, backend, databases, search
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100