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

Fix metric info cache loading when using query path #1095

Merged
merged 1 commit into from Feb 2, 2022

Conversation

antekresic
Copy link
Contributor

@antekresic antekresic commented Jan 31, 2022

Description

With the recent optimization, we have added metric IDs to metric cache
but when running queries on metrics that exist before the ingestion path
generates the cache, cache will be created with invalid metric ID values.
This change fixes that and adds end-to-end test for verifying that
cache is properly generated when this situation occurs.

Merge requirements

Please take into account the following non-code changes that you may need to make with your PR:

  • CHANGELOG entry for user-facing changes
  • Updated the relevant documentation

With the recent optimization, we have added metric IDs to metric cache
but when running queries on metrics that exist before the ingestion path
generates the cache, cache will be created with invalid metric ID values.
This change fixes that and adds end-to-end test for verifying that
cache is properly generated when this situation occurs.
@antekresic antekresic self-assigned this Jan 31, 2022
@antekresic antekresic requested a review from a team as a code owner January 31, 2022 11:55
@antekresic antekresic requested review from bitwalker and removed request for a team January 31, 2022 11:55
@VineethReddy02 VineethReddy02 added the Performance Improvements that are specifically related to performance label Jan 31, 2022
@VineethReddy02 VineethReddy02 added this to the 0.8.1 milestone Feb 1, 2022
Copy link
Contributor

@bitwalker bitwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@antekresic antekresic merged commit 07961e0 into timescale:master Feb 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Performance Improvements that are specifically related to performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants