Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Cache label IDs #1414

Merged
merged 1 commit into from
Jun 20, 2022
Merged

Cache label IDs #1414

merged 1 commit into from
Jun 20, 2022

Commits on Jun 20, 2022

  1. Cache label IDs

    Add inverted cache ( (metric + label pair) -> (id, pos)) to avoid DB calls for
    fetching label IDs in cases when series ID is not cached.
    This cache is only used when ingesting data.
    Benchmarks are showing around 5-10% gains in ingest performance and
    about 25% less DB calls for fetching label IDs (note that these numbers
    depend a lot on a shape of the dataset).
    niksajakovljevic committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    2396c0e View commit details
    Browse the repository at this point in the history