Skip to content

Add implementation todo: Valkey-cached timeseries metadata for datapo… - #23

Open
olavgg wants to merge 2 commits into
mainfrom
docs/datapoint-metadata-cache
Open

Add implementation todo: Valkey-cached timeseries metadata for datapo…#23
olavgg wants to merge 2 commits into
mainfrom
docs/datapoint-metadata-cache

Conversation

@olavgg

@olavgg olavgg commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

…int ingestion

Captures the plan to take TimeseriesService.insertDatapoints()/deleteDatapoints() off the per-request PostgreSQL read (unpooled SimpleDriverDataSource) by caching the small timeseries metadata the hot path needs in Valkey, including cache-key tenant scoping, the invalidation points on save/update/delete, and the write-ACL staleness considerations. Design note only, no behavior change.

What this changes

How it was verified

Checklist

  • Commits are signed off (git commit -s), per CONTRIBUTING.md
  • ./gradlew build passes
  • Behaviour visible outside this repo is reflected in the documentation, or does not need to be
    (see AGENTS.md for which of the two documentation sites it belongs in)

olavgg and others added 2 commits August 25, 2026 13:04
…int ingestion

Captures the plan to take TimeseriesService.insertDatapoints()/deleteDatapoints()
off the per-request PostgreSQL read (unpooled SimpleDriverDataSource) by caching the
small timeseries metadata the hot path needs in Valkey, including cache-key tenant
scoping, the invalidation points on save/update/delete, and the write-ACL staleness
considerations. Design note only, no behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Olav Gjerde <olav@intellistream.ai>
datahub-lib-nodep is now datahub-commons and there is no datahub-library: ValkeyService lives in datahub-infra. The latest-datapoint cache is already tenant-scoped via latestDatapointKey, so the gotcha now says follow it rather than go hunting. Line references refreshed.

Signed-off-by: samuel <samuel@intellistream.ai>
@samuelhel
samuelhel self-requested a review August 27, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants