Keep metric queries fast when there are many series

Open
#74 0 comments 0 reactions 0 assignees View on GitHub

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

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

area:storage feature priority:low

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

  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.

More from jdrouet/tinyobserve

All issues in jdrouet/tinyobserve

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.