statshouse icon indicating copy to clipboard operation
statshouse copied to clipboard

api: tscache for tags

Open flyingmutant opened this issue 2 years ago • 2 comments

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 avatar Jan 12 '23 09:01 flyingmutant

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 avatar Feb 02 '23 19:02 flyingmutant

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

flyingmutant avatar Feb 07 '23 15:02 flyingmutant