Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: tscache for tags #175

Open
flyingmutant opened this issue Jan 12, 2023 · 2 comments
Open

api: tscache for tags #175

flyingmutant opened this issue Jan 12, 2023 · 2 comments
Labels
A-api Area: statshouse-api A-performance Area: performance C-enhancement Category: enhancement of existing functionality

Comments

@flyingmutant
Copy link
Contributor

flyingmutant commented Jan 12, 2023

Right now all /api/metric-tag-values queries go directly to the DB, which is clearly suboptimal.

Also, the cache may allow us to load all tag values together with time series (maybe?), and we'll be able to e.g. show total number of different values in each selector, without opening them (#147).

@flyingmutant flyingmutant added A-api Area: statshouse-api C-enhancement Category: enhancement of existing functionality labels Jan 12, 2023
@flyingmutant
Copy link
Contributor Author

Another idea for speed-up: maybe first return partial data (based only on first part of data), and in the background load the full thing and send it after. Does ch-go support this kind of output from a single query?

@flyingmutant
Copy link
Contributor Author

Probably can have a single tscache variant for all merge-only data: uniques, percentiles, tag values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-api Area: statshouse-api A-performance Area: performance C-enhancement Category: enhancement of existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant