Keep metric queries fast when there are many series
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 57/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust, sqlite
- Domain
- databases, performance
Research direction
Read the SQLite adapter and find the ponytail: comment about the series lookup ceiling; measure query performance on the VM before changing anything. Compare a query for one metric name against a full scan on a day file with tens of thousands of series. Done means the query avoids scanning every series row and the measured query is faster; keep the change scoped to this index, with other indexes out of scope.
Written by the indexing model from the issue text.
Description
As a homelab operator,
I want metric queries to stay quick when a day holds tens of thousands of series,
so that charts keep loading as my services grow.
Acceptance criteria
- Given a day file with tens of thousands of series, when I query one metric name, then the store does not scan every series row.
Success signal: A measured query on a large day file is faster than a full scan.
Out of scope: Other indexes.
Open questions: None.
Technical notes
No index on series(name) today; a ponytail: comment in the SQLite adapter names the ceiling. Measure on the VM first.
Follow-up from #14.
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- Avg merge
- 40m
- Merged PRs (30d)
- 91
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from jdrouet/tinyobserve
-
area:ops chore priority:low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jdrouet/tinyobserve#267 ·
Maintainers usually reply within 1 day
-
area:ops bug priority:low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jdrouet/tinyobserve#266 ·
Maintainers usually reply within 1 day
-
area:dashboards bug priority:low
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
jdrouet/tinyobserve#263 ·
Maintainers usually reply within 1 day
-
area:dashboards bug priority:low ready
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
jdrouet/tinyobserve#260 · 1 comment ·
Maintainers usually reply within 1 day
-
chore priority:medium
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
jdrouet/tinyobserve#256 · 1 comment ·
Maintainers usually reply within 1 day
All issues in jdrouet/tinyobserve
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
storytold/photocraft#20056 ·
Maintainers usually reply within 1 day
-
accessibility agent-ready area:android bug fleet needs-qa
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
-
A-Packaging C-Bug D-Straightforward S-Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:doc bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
bherbruck/solvecraft#26051 ·