Skip to content

Conversation

@dennisgsmith
Copy link
Contributor

Description

Querying computed timeseries measurements was causing CPU spikes due to aggregating records as json. This has been mitigated using batch queries.

Note: computed timeseries measurements will be pre-computed once the new and improved expressions PR is merged.

How to Implement Upstream

A number of indexes are added. These should be manually run ahead of time for large tables, using create index concurrently ...

@dennisgsmith dennisgsmith changed the title Improve query performance chore(api): improve query performance Nov 25, 2025
@dennisgsmith dennisgsmith merged commit 79f3964 into develop Nov 25, 2025
1 check passed
@dennisgsmith dennisgsmith deleted the chore/db-query-perf branch November 25, 2025 19:54
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